blend method Null safety

Color blend(
  1. Color other,
  2. [double blend = 0.5]

A shortcut for Color.lerp.

The first color is this and the second is other. The parameter blend corresponds to the t interpolation keyframe of the lerp and defaults to 0.5.

If this lerp is null, return falls back to this.


Color blend(Color other, [double blend = 0.5]) =>
    Color.lerp(this, other, blend) ?? this;