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.
Implementation
static T of<T>(BuildContext context) {
final data = maybeOf<T>(context);
assert(data != null, 'No Data<$T> found in context');
return data!;
}