copyWith method
Implementation
EventModel copyWith({
Object? id = _copyWithSentinel,
Object? name = _copyWithSentinel,
Object? score = _copyWithSentinel,
}) {
return EventModel(
id: identical(id, _copyWithSentinel) ? this.id : id as int,
name: identical(name, _copyWithSentinel) ? this.name : name as String,
score: identical(score, _copyWithSentinel) ? this.score : score as int,
);
}