0

I am new in forum and very newbie to Dart language. I have written this simple program but even though it is not a complicated one, VSCode debug console gives following error, but when running from terminal it is ok. What could be the problem. Thanks in advance all the answerers :)

enum AudioState {
  playing,
  paused,
  stopped,
}

void main(List<String> arguments) {
  var audioState = AudioState.playing;
  switch (audioState) {
    case AudioState.paused:
      print('a little break ');
      break;
    case AudioState.playing:
      print('enjoy music ❤️');
      break;
    case AudioState.stopped:
      print('continue tomorrow ');
      break;
  }
}

The Error:

Unhandled exception: FormatException: Unexpected character (at character 2) 3b00094c7 fp 0x0000005fc29ef200 sp 0x0000005fc29ef190 [Unoptimized] new Reg... ^

0 Answers0