copyWith method Null safety

NodeMoveModel copyWith(
  1. {String? move,
  2. List<String>? childrenMoves}
)

Implementation

NodeMoveModel copyWith({
  String? move,
  List<String>? childrenMoves,
}) =>
    NodeMoveModel(
      move: move ?? this.move,
      childrenMoves: childrenMoves ?? this.childrenMoves,
    );