size method

Widget size({
  1. double? w,
  2. double? h,
})

Wraps this widget in a SizedBox to apply fixed width and/or height.

Implementation

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