maybeOf static method

XMetricsData? maybeOf(
  1. BuildContext context
)

Implementation

static XMetricsData? maybeOf(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<XMetrics>()?.data;
}