maybeOf<T extends Object> static method
Implementation
static T? maybeOf<T extends Object>(
BuildContext context, {
bool listen = false,
}) {
T? value;
value = InheritedScope.of<T>(context, listen) ?? GlobalScope.read<T>();
return value;
}