ColorThemeProviderUtils extension
- on
Methods
-
colorTheme<
T extends ColorTheme> () → T -
Obtain a ColorTheme from the closest parent in the widget tree.
This throws an AssertionError if there is no ColorThemeProvider
parent of type
T
in the widget tree. -
colorThemeManager<
T extends ColorTheme> () → ColorThemeManager< ColorTheme> -
Obtain a ColorThemeManager from the closest parent in the widget tree.
This throws an AssertionError if there is no ColorThemeProvider
parent of type
T
in the widget tree.