maybeOf static method

MapController? maybeOf(
  1. BuildContext context
)

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);