of static method

BaseThemeData of(
  1. BuildContext context, {
  2. bool shadowThemeOnly = false,
})

Implementation

static BaseThemeData of(BuildContext context, {bool shadowThemeOnly = false}) {
  final _InheritedTheme? inheritedTheme = context.dependOnInheritedWidgetOfExactType<_InheritedTheme>();
  return inheritedTheme?.theme.data ?? BaseThemeData();
}