copyWith method
WindowAdaptationState
copyWith({
- bool? isIPhoneDuoPath,
- Size? windowSize,
- EdgeInsets? safeAreaInsets,
- EdgeInsets? viewInsets,
- Orientation? orientation,
- WindowFoldState? foldState,
- 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,
);
}