of<T> static method
Implementation
static T of<T>(BuildContext context) {
final data = maybeOf<T>(context);
assert(data != null, 'No ComponentTheme<$T> found in context');
return data!;
}
static T of<T>(BuildContext context) {
final data = maybeOf<T>(context);
assert(data != null, 'No ComponentTheme<$T> found in context');
return data!;
}