copyWith method

  1. @override
ScaffoldBoxConstraints copyWith({
  1. double? headerHeight,
  2. double? footerHeight,
  3. double? minWidth,
  4. double? maxWidth,
  5. double? minHeight,
  6. double? maxHeight,
})
override

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

Implementation

@override
ScaffoldBoxConstraints copyWith({
  double? headerHeight,
  double? footerHeight,
  double? minWidth,
  double? maxWidth,
  double? minHeight,
  double? maxHeight,
}) {
  return ScaffoldBoxConstraints(
    headerHeight: headerHeight ?? this.headerHeight,
    footerHeight: footerHeight ?? this.footerHeight,
    minWidth: minWidth ?? this.minWidth,
    maxWidth: maxWidth ?? this.maxWidth,
    minHeight: minHeight ?? this.minHeight,
    maxHeight: maxHeight ?? this.maxHeight,
  );
}