copyWith method

WindowAdaptationState copyWith({
  1. bool? isIPhoneDuoPath,
  2. Size? windowSize,
  3. EdgeInsets? safeAreaInsets,
  4. EdgeInsets? viewInsets,
  5. Orientation? orientation,
  6. WindowFoldState? foldState,
  7. bool? isWindowSizeUsable,
})

Returns a copy with the supplied values replaced.

Implementation

WindowAdaptationState copyWith({
  bool? isIPhoneDuoPath,
  Size? windowSize,
  EdgeInsets? safeAreaInsets,
  EdgeInsets? viewInsets,
  Orientation? orientation,
  WindowFoldState? foldState,
  bool? isWindowSizeUsable,
}) {
  return WindowAdaptationState(
    isIPhoneDuoPath: isIPhoneDuoPath ?? this.isIPhoneDuoPath,
    windowSize: windowSize ?? this.windowSize,
    safeAreaInsets: safeAreaInsets ?? this.safeAreaInsets,
    viewInsets: viewInsets ?? this.viewInsets,
    orientation: orientation ?? this.orientation,
    foldState: foldState ?? this.foldState,
    isWindowSizeUsable: isWindowSizeUsable ?? this.isWindowSizeUsable,
  );
}