mix method

Color mix(
  1. Color other,
  2. double t
)

Linearly interpolates between this color and other by factor t (0..1).

Colors.red.mix(Colors.blue, 0.5) // purple-ish

Implementation

Color mix(Color other, double t) => Color.lerp(this, other, t)!;