withOpacity method
- @Deprecated('Use .withValues() to avoid precision loss. ' 'This feature was deprecated after v3.33.0-1.0.pre.')
- @override
- double opacity
override
Returns a new color that matches this color with the alpha channel
replaced with the given opacity (which ranges from 0.0 to 1.0).
Out of range values will have unexpected effects.
Implementation
@Deprecated(
'Use .withValues() to avoid precision loss. '
'This feature was deprecated after v3.33.0-1.0.pre.',
)
@override
Color withOpacity(double opacity) => _effectiveColor.withOpacity(opacity);