withSize method

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

With custom height and width

Implementation

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