I imported the package but my app fails compilation:
/usr/local/Caskroom/flutter/2.0.1/flutter/.pub-cache/hosted/pub.dartlang.org/quantity-1.0.0/lib/src/si/number_format_si.dart:34:44: Error: Superclass has no constructor named 'NumberFormat.scientificPattern'.
NumberFormatSI({this.unicode = false}) : super.scientificPattern();
^^^^^
But the NumberFormat superclass does in fact define this named constructor.
The following is how I'm using the package. In a file analysis.dart:
I imported the package but my app fails compilation:
But the
NumberFormat
superclass does in fact define this named constructor.The following is how I'm using the package. In a file
analysis.dart
:And then in my
main.dart
I just have:Any ideas what I'm doing wrong?
I'm on macOS, Flutter v2.0.1 stable.