of<T> static method

  1. @Deprecated('context.themeOf<T>() instead')
CustomTheme<T> of<T>(
  1. BuildContext context
)

Implementation

@Deprecated('context.themeOf<T>() instead')
static CustomTheme<T> of<T>(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<CustomTheme<T>>()!;
}