Opacity
| Type name | Supports Property Animations | Controlled by default | May contain associated action | Link |
|---|---|---|---|---|
| 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
- Go
Opacity(
&duit_attributes.OpacityAttributes{
Opacity: 0.85,
},
"",
false,
nil, //child
)