soft method

Color soft(
  1. Color color, {
  2. double amount = 0.12,
})

Creates a fully opaque subtle version of color.

Unlike alpha/opacity, the resulting color doesn't depend on whatever happens to be rendered behind it.

Implementation

Color soft(Color color, {double amount = 0.12}) {
  return _mix(background, color, amount);
}