maybeOf static method
The controller for the closest FlutterMap ancestor. If this is called from a context with no FlutterMap ancestor a StateError will be thrown.
Implementation
static MapController? maybeOf(BuildContext context) =>
FlutterMapInheritedModel.maybeControllerOf(context);