copyWith method

BoxConstraints copyWith({
  1. double? minWidth,
  2. double? maxWidth,
  3. double? minHeight,
  4. double? maxHeight,
})

Implementation

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);
}