box method

Widget box({
  1. double? height,
  2. double? width,
  3. Alignment alignment = Alignment.centerLeft,
})

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,
  );
}