copyWith method

Props copyWith({
  1. Screen1? screen1,
  2. Screen2? screen2,
})

Implementation

Props copyWith({
  Screen1? screen1,
  Screen2? screen2,
}) =>
    Props(
      screen1: screen1 ?? this.screen1,
      screen2: screen2 ?? this.screen2,
    );