controllerOf static method

MarkerController controllerOf(
  1. BuildContext context
)

Implementation

static MarkerController controllerOf(BuildContext context) {
  final controller = maybeControllerOf(context);
  if (controller == null) {
    throw FlutterError(
        'MarkerController.of() called without an `InteractiveMarkerScope` ancestor.');
  }
  return controller;
}