Updated vector_math dependency to latest (2.1.0) in a flutter project and project now fails to build with error:
The argument type 'Vector2 (where Vector2 is defined in /mnt/data/work/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.0/lib/src/vector_math_64/vector2.dart)' can't be assigned to the parameter type 'Vector2 (where Vector2 is defined in /mnt/data/work/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.0/lib/src/vector_math/vector2.dart)'. (Documentation)
Vector2 is defined in /mnt/data/work/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.0/lib/src/vector_math_64/vector2.dart (vector2.dart:10).
Vector2 is defined in /mnt/data/work/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.0/lib/src/vector_math/vector2.dart (vector2.dart:10).
How does one resolve this? Is this a flutter issue or is issue in vector_math package?