withAdditionalOpacity method

Color withAdditionalOpacity (
  1. double opacity
)

Apply opacity in addition to the existing opacity by multiplying them.

Implementation

Color withAdditionalOpacity(double opacity) {
  assert(opacity != null && opacity >= 0.0 && opacity <= 1.0);
  return withOpacity(this.opacity * opacity);
}