copyWith method

IdentityDocument copyWith({
  1. String? number,
  2. Date? expiryDate,
  3. DatedFile? frontSide,
  4. DatedFile? reverseSide,
  5. DatedFile? selfie,
  6. List<DatedFile>? translation,
})

Implementation

IdentityDocument copyWith({
  String? number,
  Date? expiryDate,
  DatedFile? frontSide,
  DatedFile? reverseSide,
  DatedFile? selfie,
  List<DatedFile>? translation,
}) => IdentityDocument(
  number: number ?? this.number,
  expiryDate: expiryDate ?? this.expiryDate,
  frontSide: frontSide ?? this.frontSide,
  reverseSide: reverseSide ?? this.reverseSide,
  selfie: selfie ?? this.selfie,
  translation: translation ?? this.translation,
);