As of version 0.4.0 you can't use this library on the standard dart VM due to it depending on the dart:ui package.
Running code on on the standard dart VM (dart run <source.dart>) that uses this library gives you the following error:
../../../../../sdk/flutter/.pub-cache/hosted/pub.dartlang.org/google_place-0.4.0/lib/src/models/lat_lon.dart:1:8: Error: Not found: 'dart:ui'
import 'dart:ui';
^
../../../../../sdk/flutter/.pub-cache/hosted/pub.dartlang.org/google_place-0.4.0/lib/src/models/lat_lon.dart:32:23: Error: The method 'hashValues' isn't defined for the class 'LatLon'.
- 'LatLon' is from 'package:google_place/src/models/lat_lon.dart' ('../../../../../sdk/flutter/.pub-cache/hosted/pub.dartlang.org/google_place-0.4.0/lib/src/models/lat_lon.dart').
Try correcting the name to the name of an existing method, or defining a method named 'hashValues'.
int get hashCode => hashValues(latitude, longitude);
Hi.
As of version 0.4.0 you can't use this library on the standard dart VM due to it depending on the
dart:ui
package.Running code on on the standard dart VM (
dart run <source.dart>
) that uses this library gives you the following error: