copyWith method

TranslatorInfo copyWith({
  1. String? uuid,
  2. String? userUUID,
  3. int? translatedCount,
  4. int? votedCount,
  5. DateTime? joinAt,
})

Implementation

TranslatorInfo copyWith({
  String? uuid,
  String? userUUID,
  int? translatedCount,
  int? votedCount,
  DateTime? joinAt,
}) {
  return TranslatorInfo(
    uuid: uuid ?? this.uuid,
    userUUID: userUUID ?? this.userUUID,
    translatedCount: translatedCount ?? this.translatedCount,
    votedCount: votedCount ?? this.votedCount,
    joinAt: joinAt ?? this.joinAt,
  );
}