maybeProperty<T> method
Optionally find and listen to property changes of the data with the given type from the context. Returns null if the data is not found.
T
The type of the data.- context The build context.
key
The data key.
Implementation
ModelProperty<T>? maybeProperty<T>(Symbol key) {
assert(state.mounted, 'State is not mounted');
return Model.maybeOfProperty<T>(state.context, key);
}