size method

Widget size([
  1. double value = double.infinity
])

Wraps the widget in a SizedBox to set its size (width and height).

Implementation

Widget size([double value = double.infinity]) =>
    SizedBox(width: value, height: value, child: this);