lerp method
Interpolates between two styles for animated theme transitions.
Implementation
FdcGridControlsStyle lerp(FdcGridControlsStyle other, double t) {
return FdcGridControlsStyle(
iconColor: Color.lerp(iconColor, other.iconColor, t),
disabledIconColor: Color.lerp(
disabledIconColor,
other.disabledIconColor,
t,
),
activeIconColor: Color.lerp(activeIconColor, other.activeIconColor, t),
checkboxFillColor: Color.lerp(
checkboxFillColor,
other.checkboxFillColor,
t,
),
checkboxCheckColor: Color.lerp(
checkboxCheckColor,
other.checkboxCheckColor,
t,
),
checkboxBorderColor: Color.lerp(
checkboxBorderColor,
other.checkboxBorderColor,
t,
),
checkboxDisabledFillColor: Color.lerp(
checkboxDisabledFillColor,
other.checkboxDisabledFillColor,
t,
),
checkboxDisabledCheckColor: Color.lerp(
checkboxDisabledCheckColor,
other.checkboxDisabledCheckColor,
t,
),
checkboxDisabledBorderColor: Color.lerp(
checkboxDisabledBorderColor,
other.checkboxDisabledBorderColor,
t,
),
switchThumbColor: Color.lerp(switchThumbColor, other.switchThumbColor, t),
switchTrackColor: Color.lerp(switchTrackColor, other.switchTrackColor, t),
switchDisabledThumbColor: Color.lerp(
switchDisabledThumbColor,
other.switchDisabledThumbColor,
t,
),
switchDisabledTrackColor: Color.lerp(
switchDisabledTrackColor,
other.switchDisabledTrackColor,
t,
),
);
}