widthBox property

Widget get widthBox

Converts the number into a SizedBox with the width as that number.

Implementation

Widget get widthBox => SizedBox(width: toDouble());