Dart optional parameter default values?
Default parameters have to be constants. You have to define your default values with the const
keyword.
m([p1 = const['a', 'b']]) => null;
Default values need to be constants.
someFunc({someParam = const {'a': 'b'} }) => someParam;