of<T> static method
Implementation
static T of<T>(BuildContext context) {
final nop = context.dependOnInheritedWidgetOfExactType<_NopScoop>();
if (nop != null) {
return nop.state.getType<T>();
} else {
assert(
Log.e('Nop.page not found. You need to use Nop.page()') && stricted);
final listener = GetTypePointers.defaultGetNopListener(T, null);
return listener.data;
}
}