maybeFind<T> static method
Optionally find the data of the given type from the context. Returns null if the data is not found.
TThe type of the data.contextThe build context.keyThe data key.
Implementation
static T? maybeFind<T>(BuildContext context, Symbol key) {
return maybeOfProperty<T>(context, key)?.value;
}