of<T> static method
Find and listen to data changes of the data with the given type from the context.
TThe type of the data.contextThe build context.keyThe data key.
Implementation
static T of<T>(BuildContext context, Symbol key) {
return ofProperty<T>(context, key).value;
}