maybeOf static method

MapController? maybeOf(
  1. BuildContext context
)

Find the MapController of the closest MapLibreMap in the widget tree. Returns null if called outside of the MapLibreMap.children.

Implementation

static MapController? maybeOf(BuildContext context) =>
    MapLibreInheritedModel.maybeMapControllerOf(context);