of static method

Implementation

static FlutterMapState of(BuildContext context) =>
    maybeOf(context) ??
    (throw StateError(
        '`FlutterMapState.of()` should not be called outside a `FlutterMap` and its children'));