flutter_google_track_and_trace/lib/src/controller.dart

25 lines
457 B
Dart
Raw Normal View History

2021-09-28 08:18:14 +02:00
part of google_track_trace;
class TrackTraceController {
late final Completer<GoogleMapController> _mapController;
// get the duration
// get the distance
// listen to updates on the source marker
// listen to updates on the route
void dispose() {}
void setController(Completer<GoogleMapController> controller) {
_mapController = controller;
}
Completer<GoogleMapController> getController() {
return _mapController;
}
}