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