easyBox property

Widget get easyBox

creates a SizedBox from List of Int.

0th element of list is taken as height and 1st element as width.

Implementation

Widget get easyBox {
  assert(this.length == 2, "List should have exactly 2 elements");
  return SizedBox(
    height: this[0].toDouble().hWise,
    width: this[1].toDouble().wWise,
  );
}