withSize method

SizedBox withSize({
  1. double? width,
  2. double? height,
})

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

Implementation

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