copyWith method

EventModel copyWith({
  1. Object? id = _copyWithSentinel,
  2. Object? name = _copyWithSentinel,
  3. Object? score = _copyWithSentinel,
})

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,
  );
}