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.
TThe type of the data.- context The build context.
keyThe data key.
Implementation
ModelProperty<T>? maybeProperty<T>(Symbol key) {
assert(state.mounted, 'State is not mounted');
return Model.maybeOfProperty<T>(state.context, key);
}