of static method

LocationContext? of(
  1. BuildContext context
)

Retrieve the location provider for the current context

Implementation

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