box method
Wraps the widget in a Container with optional height
, width
, and alignment
.
Implementation
Widget box({
double? height,
double? width,
Alignment alignment = Alignment.centerLeft,
}) {
return Container(
height: height,
width: width,
alignment: alignment,
child: this,
);
}