copyWith method
CustomScreen
copyWith({
- String? label,
- Size? size,
- Widget? child,
- DeviceInfo? cupertinoDevice,
- DeviceInfo? androidDevice,
- Orientation? orientation,
Implementation
CustomScreen copyWith({
String? label,
Size? size,
Widget? child,
DeviceInfo? cupertinoDevice,
DeviceInfo? androidDevice,
Orientation? orientation,
}) {
return CustomScreen(
label: label ?? this.label,
size: size ?? this.size,
child: child ?? this.child,
cupertinoDevice: cupertinoDevice ?? this.cupertinoDevice,
androidDevice: androidDevice ?? this.androidDevice,
orientation: orientation ?? this.orientation,
);
}