height method

Modifier height(
  1. double height
)

Wrap the widget into an SizedBox Widget

Apply the height to the Container If your purpose is the width of also then recommended to use Modifier.widthHeight

Implementation

Modifier height(double height) {
  return Modifier._([
    ..._modifiers,
    (widget) {
      return SizedBox(
        height: height,
        child: widget,
      );
    }
  ]);
}