lerp method

Linearly interpolates this style toward other by t.

Implementation

FdcEditorControlsStyle lerp(FdcEditorControlsStyle other, double t) {
  return FdcEditorControlsStyle(
    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,
    ),
    labelStyle: TextStyle.lerp(labelStyle, other.labelStyle, t),
    disabledLabelStyle: TextStyle.lerp(
      disabledLabelStyle,
      other.disabledLabelStyle,
      t,
    ),
  );
}