alpha property
override
The alpha transparency value of the object specified.
Valid values are 0 (fully transparent) to 1 (fully opaque). The default value is 1. Display objects with alpha set to 0 are active, even though they are invisible.
Implementation
@override
num get alpha => _alpha;
override
Implementation
@override
set alpha(num value) {
if (value is num) {
// Clamp values and convert possible integers to double.
if (value <= 0) value = 0.0;
if (value >= 1) value = 1.0;
_alpha = value;
}
}