alpha property

double alpha
inherited

Returns the alpha (transparency) value of this object.

Implementation

double get alpha {
  return $alpha;
}
  1. @override
void alpha=(double value)
override

Sets the transparency of this object.

Implementation

@override
set alpha(double value) {
  super.alpha = value;
  _paint.color = _paint.color.withOpacity($alpha);
}