size method

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

Wrap widget with SizedBox

Implementation

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