copySize method

BoxConstraints copySize({
  1. double? width,
  2. double? height,
})

Copy the size of the BoxConstraints with the given width and height.

Implementation

BoxConstraints copySize({double? width, double? height}) =>
    copyWith(minWidth: width, maxWidth: width, minHeight: height, maxHeight: height);