mergeWith method

Color mergeWith(
  1. Color anotherColor,
  2. double percent
)

Blends two colors based on a percentage

TheColor: Main color AnotherColor: Blending color Percent: Blending percentage

Returns the blended color

Implementation

Color mergeWith(Color anotherColor, double percent) => lerp(anotherColor, percent);