copyWith method

CustomScreen copyWith({
  1. String? label,
  2. Size? size,
  3. Widget? child,
  4. DeviceInfo? cupertinoDevice,
  5. DeviceInfo? androidDevice,
  6. 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,
  );
}