withConstraints method

Widget withConstraints(
  1. BoxConstraints constraints
)

Wrap this widget with a ConstrainedBox, and set it's constraints to constraints

Implementation

Widget withConstraints(BoxConstraints constraints) {
  return ConstrainedBox(constraints: constraints, child: this);
}