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

The transparency of the icon, from 0 (fully transparent) to 1 (fully opaque).

When changing the alpha value, it will automatically trigger a redraw of the object.

Implementation

@override
set alpha(double value) {
  if ($alpha == value) return;
  super.alpha = value;
  _invalidStyle = true;
  requiresRedraw();
}