of static method

ThemeProvider of(
  1. BuildContext context
)

Implementation

static ThemeProvider of(BuildContext context) {
  final result = context.dependOnInheritedWidgetOfExactType<ThemeProvider>();
  assert(result != null, 'No ThemeProvider found in context');
  return result!;
}