Themed constructor
Themed({})
The Themed widget should wrap the child
which contains the tree of
widgets you want to use the color theme. It' recommended that you provide a
defaultTheme
.
Implementation
Themed({
Key? key,
Map<ThemeRef, Object>? defaultTheme,
Map<ThemeRef, Object>? currentTheme,
required this.child,
}) : super(key: _themedKey) {
if (defaultTheme != null) _defaultTheme = toIdenticalKeyedMap(defaultTheme);
if (currentTheme != null) _currentTheme = toIdenticalKeyedMap(currentTheme);
}