contrast method

Color contrast(
  1. Brightness brighness,
  2. double amount
)

Implementation

Color contrast(Brightness brighness, double amount) {
  return brighness == Brightness.light ? darken(amount) : lighten(amount);
}