maybeOf static method

CenterZoomMapState? maybeOf(
  1. BuildContext context
)

Finds the CenterZoomMapState from the closest instance of this class that encloses the given context, or null if none is found.

Implementation

static CenterZoomMapState? maybeOf(BuildContext context) =>
    context.findAncestorStateOfType<_CenterZoomMapState>();