The constructor being called isn't a const constructor. (Documentation) Try removing 'const' from the constructor invocation.
A value of type 'Null' can't be assigned to a parameter of type 'double' in a const constructor. (Documentation) Try using a subtype, or removing the keyword 'const'.
Arguments of a constant creation must be constant expressions. (Documentation) Try making the argument a valid constant, or use 'new' to call the constructor.
flutter 2.10.2 , Tools • Dart 2.16.1 • DevTools 2.9.2
The constructor being called isn't a const constructor. (Documentation) Try removing 'const' from the constructor invocation. A value of type 'Null' can't be assigned to a parameter of type 'double' in a const constructor. (Documentation) Try using a subtype, or removing the keyword 'const'. Arguments of a constant creation must be constant expressions. (Documentation) Try making the argument a valid constant, or use 'new' to call the constructor.