widthHeight method
Wrap the widget into an SizedBox Widget
Recommended to use when need to set the height and width If you use Modifier.width or Modifier.height separately then it will unnecessary add extra SizedBox wrapping.
Implementation
Modifier widthHeight(double width,double height) {
return Modifier._([
..._modifiers,
(widget) {
return SizedBox(
width: width,
height: height,
child: widget,
);
}
]);
}