in vs code, i am getting this error in the basic input taking code from the user
my complete code:

import 'dart:io';

```
void main(){
  stdout.write("Enter your name : ");
  var name = stdin.readLineSync();
  stdout.write(name);
}

```

Error in the compiler:

```
playground.dart:9:23: Error: Method not found: 'Stdin.readLineSync'.
  String name = Stdin.readLineSync();
                      ^^^^^^^^^^^^

```