copyWithGeneric abstract method
Copies the state of the game with generic replaced by the function applying updates to the most recent copy of generic
This method should be implemented as follows for Games created with freezed and a field called generic:
@override
Game copyWithGeneric(GenericGame Function(GenericGame p1) updates) {
return copyWith(generic: updates(generic));
}
Implementation
Game copyWithGeneric(GenericGame Function(GenericGame) updates);