UnimplementedError: Global evaluation not currently supported

Hi friends, in this tutorial i will sharing about how to fix error on dart, this time I want to share my experience when running dart code in vscode which found an error with the message: “UnimplementedError: Global evaluation not currently supported”. Before continuing with the tutorial, if anyone doesn’t know how to install Dart on Windows, you can check the tutorial on how to install Dart on Windows here.
Here is the code that I running in vscode editor

import 'dart:io';

void main() {
  print('Enter price');
  var n1 = double.parse(stdin.readLineSync()!);
  print('Enter quantity');
  var n2 = double.parse(stdin.readLineSync()!);

  var output = n1 * n2;

  print('Total : $output');
}

Leave a Reply

Your email address will not be published. Required fields are marked *