currentTheme property

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

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

The current theme overrides the default theme. If a color is present in the current theme, it will be used. If not, the color from the default theme will be used instead. For this reason, the current theme doesn't need to have all the colors, but only the ones you want to change from the default.

Implementation

static set currentTheme(Map<ThemeRef, Object>? currentTheme) {
  _delayedThemeChangeByKey = null;
  _currentTheme = toIdenticalKeyedMap(currentTheme);
  _setState();
}