Box.rand constructor
- @Deprecated("Use this for debugging purposes only.")
- Key? key,
- bool show = true,
- Color? color,
- EdgeInsetsGeometry? padding,
- double? width,
- double? height,
- AlignmentGeometry? alignment,
- Widget? child,
- bool removePaddingWhenNoChild = false,
Use the Box.rand
constructor to see when the widget rebuilds.
It will change its color to a random one, whenever its build method is called.
This constructor is marked as deprecated so that you don't forget to remove it.
Implementation
@Deprecated("Use this for debugging purposes only.")
const Box.rand({
Key? key,
this.show = true,
this.color,
this.padding,
this.width,
this.height,
this.alignment,
this.child,
this.removePaddingWhenNoChild = false,
}) : _random = true,
super(key: key);