copyWith method

Department copyWith({
  1. int? id,
  2. Value<DateTime?> fetchedAt = const Value.absent(),
  3. String? code,
  4. String? nameZh,
})

Implementation

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