lerp static method

Linearly interpolate between two styles.

Implementation

static DataGridCurrentCellStyle? lerp(
    DataGridCurrentCellStyle? a, DataGridCurrentCellStyle? b, double t) {
  if (a == null && b == null) {
    return null;
  }
  return DataGridCurrentCellStyle(
      borderColor: Color.lerp(a!.borderColor, b!.borderColor, t)!,
      borderWidth: lerpDouble(a.borderWidth, b.borderWidth, t)!);
}