Skip to main content

Opacity

Type nameSupports Property AnimationsControlled by defaultMay contain associated actionLink
Opacity✔️✗✗link
Attributes (outdated models)
abstract interface class _OpacityProps {
abstract final double opacity;
}

final class OpacityAttributes extends AnimatedPropertyOwner
implements _OpacityProps, DuitAttributes<OpacityAttributes> {

final double opacity;

const OpacityAttributes({
required this.opacity,
required super.parentBuilderId,
required super.affectedProperties,
});

Usage​

Opacity(
&duit_attributes.OpacityAttributes{
Opacity: 0.85,
},
"",
false,
nil, //child
)