fromSize static method

BoxConstraints fromSize(
  1. Size size
)

Create BoxConstraints from the given size.

Implementation

static BoxConstraints fromSize(Size size) =>
    BoxConstraints(minWidth: size.width, maxWidth: size.width, minHeight: size.height, maxHeight: size.height);