disabledOpacity property

double disabledOpacity
final

The factor by which to multiply a color's opacity when a widget is disabled. Defaults to 0.5.

For example, a fully opaque color will become 50% transparent, and a color at 80% opacity will become 40%.

Contract

Throws AssertionError if the value is less than 0 or greater than 1.

Implementation

final double disabledOpacity;