darken static method

Color darken(
  1. Color color,
  2. double amount
)

Mixes toward black.

Implementation

static Color darken(Color color, double amount) => mix(color, const Color(0xFF000000), amount);