ColorTheme class

Constructors

ColorTheme.new({String? name, ThemeMode? themeMode, ThemeColor<Color>? green, ThemeColor<Color>? grey, ThemeColor<Color>? blue, ThemeColor<Color>? red, ThemeColor<Color>? orange, ThemeColor<Color>? yellow, ThemeColor<Color>? purple, ThemeColor<Color>? pink, ColorThemeConfig? appbar, ColorThemeConfig? base, ColorThemeConfig? background, ColorThemeConfig? bottom, ColorThemeConfig? card, ColorThemeConfig? dialog, ColorThemeConfig? divider, ColorThemeConfig? highlight, ColorThemeConfig? hint, ColorThemeConfig? hover, ColorThemeConfig? icon, ColorThemeConfig? label, ColorThemeConfig? placeholder, ColorThemeConfig? scaffold, ColorThemeConfig? shadow, ColorThemeConfig? splash, ColorThemeConfig? surface, ColorThemeConfig? text, Iterable<ColorThemeData> colors = const [], Iterable<GradientThemeData> gradients = const []})

Properties

hashCode int
The hash code for this object.
no setterinherited
name String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply() → void
createInstance() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>?
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

i ColorTheme
no setter

Static Methods

blueOf(bool dark) Color
greenOf(bool dark) Color
greyOf(bool dark) Color
isDarkMode(BuildContext context) bool
orangeOf(bool dark) Color
pinkOf(bool dark) Color
purpleOf(bool dark) Color
redOf(bool dark) Color
tryParse(Object? payload) ColorTheme?
yellowOf(bool dark) Color