copyWith method

NewUserDetails copyWith({
  1. List<String>? applicationKeys,
  2. String? displayName,
  3. String? emailAddress,
  4. String? key,
  5. String? name,
  6. String? password,
  7. List<String>? products,
  8. String? self,
})

Implementation

NewUserDetails copyWith(
    {List<String>? applicationKeys,
    String? displayName,
    String? emailAddress,
    String? key,
    String? name,
    String? password,
    List<String>? products,
    String? self}) {
  return NewUserDetails(
    applicationKeys: applicationKeys ?? this.applicationKeys,
    displayName: displayName ?? this.displayName,
    emailAddress: emailAddress ?? this.emailAddress,
    key: key ?? this.key,
    name: name ?? this.name,
    password: password ?? this.password,
    products: products ?? this.products,
    self: self ?? this.self,
  );
}