of<U extends Trigger> static method

U? of<U extends Trigger>(
  1. BuildContext context
)

Implementation

static U? of<U extends Trigger>(BuildContext context) {
  final scope = context
      .dependOnInheritedWidgetOfExactType<_InheritedTriggerScope>();
  return scope?.tgMap[U] as U?;
}