of static method

Implementation

static MarkerController of(BuildContext context) =>
    maybeOf(context) ??
    (throw StateError(
        '`MarkerController.of()` should not be called outside a `InteractiveMarkerScope` or without a provider.'));