Box.r constructor Null safety
- @Deprecated("Use this for debugging purposes only.")
Adding .r
to the box will make it red.
Use this for debugging purposes only.
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.r({
Key? key,
bool show = true,
// ignore: avoid_unused_constructor_parameters
Color? color,
EdgeInsetsGeometry? padding,
double? width,
double? height,
Alignment? alignment,
Widget? child,
}) : this(
key: key,
show: show,
color: Colors.red,
padding: padding,
width: width,
height: height,
alignment: alignment,
child: child,
);