BoxConstraints.fromViewConstraints constructor

BoxConstraints.fromViewConstraints(
  1. ViewConstraints constraints
)

Creates box constraints that match the given view constraints.

Implementation

BoxConstraints.fromViewConstraints(ui.ViewConstraints constraints)
    : minWidth = constraints.minWidth,
      maxWidth = constraints.maxWidth,
      minHeight = constraints.minHeight,
      maxHeight = constraints.maxHeight;