of<TTheme extends ExtendedTheme> static method

ThemeHolder<TTheme> of<TTheme extends ExtendedTheme>(
  1. BuildContext context
)

Link to theme controller object, use this for managing themes

Implementation

static ThemeHolder<TTheme> of<TTheme extends ExtendedTheme>(
    BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<_InheritedTheme<TTheme>>()!
      .stateTheme!
      .themeFacade;
}