lerp method

Interpolates between two styles for animated theme transitions.

Implementation

FdcGridCellIndicatorStyle lerp(FdcGridCellIndicatorStyle other, double t) {
  return FdcGridCellIndicatorStyle(
    readOnlyColor: Color.lerp(readOnlyColor, other.readOnlyColor, t),
    editableColor: Color.lerp(editableColor, other.editableColor, t),
    editingColor: Color.lerp(editingColor, other.editingColor, t),
    thickness: lerpDouble(thickness, other.thickness, t),
    borderRadius: BorderRadius.lerp(borderRadius, other.borderRadius, t),
  );
}