maybeControllerOf static method

MarkerController? maybeControllerOf(
  1. BuildContext context
)

Implementation

static MarkerController? maybeControllerOf(BuildContext context) {
  final scope = context.dependOnInheritedWidgetOfExactType<
      InheritedInteractiveScope<Marker>>();
  return scope?.controller as MarkerController;
}