effectiveColor property

Color get effectiveColor

color with intensity applied to its alpha.

Implementation

Color get effectiveColor => color.withValues(
      alpha: (color.a * intensity).clamp(0.0, 1.0),
    );