12 lines
255 B
Dart
12 lines
255 B
Dart
import 'package:flutter/cupertino.dart';
|
|
|
|
class MapState extends ChangeNotifier {
|
|
bool _isLocationLock = false;
|
|
|
|
bool get followLocation => _isLocationLock;
|
|
|
|
toggleLocationLock() {
|
|
_isLocationLock = !_isLocationLock;
|
|
notifyListeners();
|
|
}
|
|
} |