defaultTheme property

void defaultTheme=(Map<ThemeRef, Object>? defaultTheme)

Same as Themed.of(context).defaultTheme = { ... };

The default theme must define all used colors.

Implementation

static set defaultTheme(Map<ThemeRef, Object>? defaultTheme) {
  _defaultTheme = toIdenticalKeyedMap(defaultTheme);
  _themedKey.currentState?.setState(() {}); // ignore: invalid_use_of_protected_member
}