import 'package:amap_flutter_base/amap_flutter_base.dart'; import 'package:flutter/foundation.dart'; class MyLocationProvider with ChangeNotifier, DiagnosticableTreeMixin { LatLng _myLatLng; LatLng get myLatLng => _myLatLng; void getLocation(double lat,double lng) { _myLatLng = LatLng(lat, lng); notifyListeners(); } @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { super.debugFillProperties(properties); } }