25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- import 'package:flutter/widgets.dart';
- import 'package:google_maps_flutter/google_maps_flutter.dart';
- import 'package:provider/provider.dart';
-
- class LocationProvider extends ChangeNotifier {
- static LocationProvider of(BuildContext context) =>
- Provider.of<LocationProvider>(context);
-
- LatLng _lastIdleLocation;
-
- LatLng get lastIdleLocation => _lastIdleLocation;
-
- void setLastIdleLocation(LatLng lastIdleLocation) {
- if (_lastIdleLocation != lastIdleLocation) {
- _lastIdleLocation = lastIdleLocation;
- notifyListeners();
- }
- }
- }
|