copyWith method

BoxConstraints copyWith ({double minWidth double maxWidth double minHeight double maxHeight })

Creates a copy of this box constraints but with the given fields replaced with the new values.


BoxConstraints copyWith({
  double minWidth,
  double maxWidth,
  double minHeight,
  double maxHeight,
}) {
  return BoxConstraints(
    minWidth: minWidth ?? this.minWidth,
    maxWidth: maxWidth ?? this.maxWidth,
    minHeight: minHeight ?? this.minHeight,
    maxHeight: maxHeight ?? this.maxHeight,