increaseAlpha function

Color increaseAlpha(
  1. Color color, {
  2. double amount = 0.1,
})

Increases the alpha of the given color by the given amount.

Implementation

Color increaseAlpha(Color color, {double amount = 0.1}) {
  return color.withOpacity((color.opacity + amount).clamp(0.0, 1.0));
}