of static method

MetricsProvider? of(
  1. BuildContext context
)

Implementation

static MetricsProvider? of(BuildContext context) =>
    context.dependOnInheritedWidgetOfExactType<MetricsProvider>();