copyWith method

Province copyWith({
  1. String? name,
  2. String? nepali,
  3. int? id,
  4. List<District>? district,
})

Implementation

Province copyWith({
  String? name,
  String? nepali,
  int? id,
  List<District>? district,
}) {
  return Province(
    name: name ?? this.name,
    nepali: nepali ?? this.nepali,
    id: id ?? this.id,
    district: district ?? this.district,
  );
}