of static method
Look up the nearest ancestor scope or throw. Use inside
TickkiTrackable builders where the scope is required.
Implementation
static TickkiAnalytics of(BuildContext context) {
final a = maybeOf(context);
if (a == null) {
throw FlutterError(
'TickkiAnalyticsScope.of(context) called with no scope in the tree. '
'Wrap your app in a TickkiAnalyticsScope (typically inside main()).',
);
}
return a;
}