maybeOf static method

TickkiAnalytics? maybeOf(
  1. BuildContext context
)

Look up the nearest ancestor scope. Returns null if no scope is installed — callers should fall back gracefully.

Implementation

static TickkiAnalytics? maybeOf(BuildContext context) {
  final inh = context
      .dependOnInheritedWidgetOfExactType<_TickkiAnalyticsInheritedScope>();
  return inh?.analytics;
}