lighten method

Color lighten([
  1. double factor = 0.1
])

Lightens the color by blending it with white.

Implementation

Color lighten([double factor = 0.1]) {
  return Color.lerp(this, Colors.white, factor.clamp(0.0, 1.0)) ?? this;
}