copyWith method
Implementation
ClassesData copyWith({
int? id,
Value<DateTime?> fetchedAt = const Value.absent(),
String? code,
String? nameZh,
Value<String?> nameEn = const Value.absent(),
}) => ClassesData(
id: id ?? this.id,
fetchedAt: fetchedAt.present ? fetchedAt.value : this.fetchedAt,
code: code ?? this.code,
nameZh: nameZh ?? this.nameZh,
nameEn: nameEn.present ? nameEn.value : this.nameEn,
);