Dart enum compiler error
When you define const all its member have to be constant expression. In your case new Map<String,String> { "fizz": "buzz"}
is not a constant expression. You have to used const <String,String>{ "fizz": "buzz"}
to create a constant Map.
class Place { static const SigninPlace = const Place._("", const <String,String>{ "fizz": "buzz"}); static const SignoutPlace = const Place._("", null); static get values => [SigninPlace, SignoutPlace]; final String name; final Map<String,String> params; const Place._(this.name, this.params);}