copyWith method

ThermostatTheme copyWith({
  1. Color? glowColor,
  2. Color? tickColor,
  3. Color? thumbColor,
  4. Color? dividerColor,
  5. Color? turnOnColor,
  6. Color? iconColor,
  7. Color? ringColor,
  8. bool removeRingColor = false,
})

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,
  );
}