of static method

MapLayout? of(
  1. BuildContext context
)

The data from the closest MapLayout instance that encloses the given context.

Implementation

static MapLayout? of(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<MapLayout>();
}