I'm receiving a syntax error from Android Studio when creating a list in Flutter (Dart).
Even in the simplest form copied from the Flutter documentation, I get the same error.
the code:
var simonSequence = new List<int>(3);
var c = simonSequence[0]; //error here
final anEmptyListOfDouble = <int>[];
anEmptyListOfDouble[0]=0; //also error here
give an error on the line that accesses the list element.
any suggestions are appreciated.
