copyWith method
Implementation
ThermostatTheme copyWith({
Color? glowColor,
Color? tickColor,
Color? thumbColor,
Color? dividerColor,
Color? turnOnColor,
Color? iconColor,
Color? ringColor,
bool removeRingColor = false,
}) {
return ThermostatTheme._(
glowColor: glowColor ?? this.glowColor,
tickColor: tickColor ?? this.tickColor,
thumbColor: thumbColor ?? this.thumbColor,
dividerColor: dividerColor ?? this.dividerColor,
ringColor: !removeRingColor ? ringColor ?? this.ringColor : null,
turnOnColor: turnOnColor ?? this.turnOnColor,
// iconColor: iconColor ?? this.iconColor,
);
}