copyWith method

Application copyWith({
  1. String? applicationId,
  2. String? name,
  3. String? displayName,
  4. DateTime? joinDate,
  5. String? logoUrl,
  6. String? applicationUrl,
  7. String? reasonForAccess,
  8. String? useCase,
  9. String? companyLegalName,
  10. String? city,
  11. String? region,
  12. String? postalCode,
  13. String? countryCode,
})

Implementation

Application copyWith(
    {String? applicationId,
    String? name,
    String? displayName,
    DateTime? joinDate,
    String? logoUrl,
    String? applicationUrl,
    String? reasonForAccess,
    String? useCase,
    String? companyLegalName,
    String? city,
    String? region,
    String? postalCode,
    String? countryCode}) {
  return Application(
      applicationId: applicationId ?? this.applicationId,
      name: name ?? this.name,
      displayName: displayName ?? this.displayName,
      joinDate: joinDate ?? this.joinDate,
      logoUrl: logoUrl ?? this.logoUrl,
      applicationUrl: applicationUrl ?? this.applicationUrl,
      reasonForAccess: reasonForAccess ?? this.reasonForAccess,
      useCase: useCase ?? this.useCase,
      companyLegalName: companyLegalName ?? this.companyLegalName,
      city: city ?? this.city,
      region: region ?? this.region,
      postalCode: postalCode ?? this.postalCode,
      countryCode: countryCode ?? this.countryCode);
}