sized method

Widget sized({
  1. double? width,
  2. double? height,
})

Wraps this widget in a SizedBox with the given width and/or height.

Implementation

Widget sized({double? width, double? height}) {
  return SizedBox(width: width, height: height, child: this);
}