opacity property Null safety

double? opacity

An opacity to apply to both explicit and default icon colors.

Falls back to 1.0.

Implementation

double? get opacity => _opacity == null ? null : clampDouble(_opacity!, 0.0, 1.0);