alpha property
Returns the alpha (transparency) value of this object.
Implementation
double get alpha {
return $alpha;
}
Set the alpha value of this object and update the alpha value of the internal paint object that is used to render the text with the specified opacity.
Implementation
@override
set alpha(double value) {
final changed = value != $alpha;
super.alpha = value;
if (changed) {
_alphaPaint.color = _alphaPaint.color.withOpacity($alpha);
}
}