of static method
Implementation
static ThemeData of(BuildContext context) {
final _InheritedTheme? inheritedTheme =
context.dependOnInheritedWidgetOfExactType<_InheritedTheme>();
return inheritedTheme?.theme.data ?? ThemeData.dark();
}
static ThemeData of(BuildContext context) {
final _InheritedTheme? inheritedTheme =
context.dependOnInheritedWidgetOfExactType<_InheritedTheme>();
return inheritedTheme?.theme.data ?? ThemeData.dark();
}