size method
Wrap the widget into an SizedBox Widget
Sets both width and height to the given size
Implementation
Modifier size(double size) {
return Modifier._([..._modifiers, (widget) {
return SizedBox(
width: size,
height: size,
child: widget,
);
}]);
}