copyWith method Null safety
- {FlutterView? window,
- double? devicePixelRatio,
- Rect? geometry,
- bool? visible,
- WindowPadding? viewInsets,
- WindowPadding? viewPadding,
- WindowPadding? systemGestureInsets,
- WindowPadding? padding,
- GestureSettings? gestureSettings,
- List<
DisplayFeature> ? displayFeatures}
Copy this configuration with some fields replaced.
Implementation
ViewConfiguration copyWith({
FlutterView? window,
double? devicePixelRatio,
Rect? geometry,
bool? visible,
WindowPadding? viewInsets,
WindowPadding? viewPadding,
WindowPadding? systemGestureInsets,
WindowPadding? padding,
GestureSettings? gestureSettings,
List<DisplayFeature>? displayFeatures,
}) {
return ViewConfiguration(
window: window ?? this.window,
devicePixelRatio: devicePixelRatio ?? this.devicePixelRatio,
geometry: geometry ?? this.geometry,
visible: visible ?? this.visible,
viewInsets: viewInsets ?? this.viewInsets,
viewPadding: viewPadding ?? this.viewPadding,
systemGestureInsets: systemGestureInsets ?? this.systemGestureInsets,
padding: padding ?? this.padding,
gestureSettings: gestureSettings ?? this.gestureSettings,
displayFeatures: displayFeatures ?? this.displayFeatures,
);
}