alpha property Null safety

num alpha
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;
void alpha=(num value)
override

Implementation

@override
set alpha(num value) {
  _alpha = value.clamp(0.0, 1.0);
}