withHeight method

SizedBox withHeight(
  1. double height
)

Wraps the widget inside a SizedBox with a custom height.

Text("Hello").withHeight(50);

Implementation

SizedBox withHeight(double height) => SizedBox(height: height, child: this);