copyWith method

IdFrontData copyWith({
  1. String? documentImageBase64,
  2. String? icNumber,
  3. String? street,
  4. String? city,
  5. String? name,
  6. String? state,
  7. String? zipCode,
  8. String? dob,
  9. String? gender,
})

Implementation

IdFrontData copyWith({
  String? documentImageBase64,
  String? icNumber,
  String? street,
  String? city,
  String? name,
  String? state,
  String? zipCode,
  String? dob,
  String? gender,
}) =>
    IdFrontData(
      documentImageBase64: documentImageBase64 ?? this.documentImageBase64,
      icNumber: icNumber ?? this.icNumber,
      street: street ?? this.street,
      city: city ?? this.city,
      name: name ?? this.name,
      state: state ?? this.state,
      zipCode: zipCode ?? this.zipCode,
      dob: dob ?? this.dob,
      gender: gender ?? this.gender,
    );