copyWith method

AuthUserModel copyWith({
  1. AuthToken? authToken,
  2. AuthProfile? profile,
  3. String? hashedUserId,
  4. String? accountType,
})

Implementation

AuthUserModel copyWith({
  AuthToken? authToken,
  AuthProfile? profile,
  String? hashedUserId,
  String? accountType,
}) {
  return AuthUserModel(
    authToken: authToken ?? this.authToken,
    profile: profile ?? this.profile,
    hashedUserId: hashedUserId ?? this.hashedUserId,
    accountType: accountType ?? this.accountType,
  );
}