constraints property Null safety

BoxConstraints constraints

Simply a convenience that returns minWidth and height as a BoxConstraints object.

Implementation

BoxConstraints get constraints {
  return BoxConstraints(
    minWidth: minWidth,
    minHeight: height,
  );
}