property<T> method
Find and listen to property changes of the data with the given type from the context. Throws an assertion error if the data is not found.
T
The type of the data.- context The build context.
key
The data key.
Implementation
ModelProperty<T> property<T>(Symbol key) {
assert(state.mounted, 'State is not mounted');
return Model.ofProperty<T>(state.context, key);
}