themeOf static method

NomoTheme themeOf(
  1. BuildContext context
)

Implementation

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