wBox method
Creates a fixed width SizedBox with the specified width equal to this num
.
This method converts the num
value to a double and uses it for the width.
child
is an optional child widget to be placed inside the SizedBox.
Returns a SizedBox with the specified width and unconstrained height.
Example:
100.wBox(Text('Wide Box'))
Implementation
SizedBox wBox([Widget? child]) => SizedBox(width: toDouble(), child: child);