size function
Implementation
Widget size(Widget widget, double? height, double? width) {
if (width != null && height != null) {
return SizedBox(width: width, height: height, child: widget);
}
if (width != null) {
return SizedBox(width: width, child: widget);
}
if (height != null) {
return SizedBox(height: height, child: widget);
}
return widget;
}