AuthUser class

AuthUser model

AuthUser.empty represents an unauthenticated user.

Annotations
  • @freezed

Constructors

AuthUser({@Default('') String id, String? email, String? phone, String? name, String? photo, @Default([]) List<SocialProvider> providers, String? authToken, @Default(false) bool emailVerified, @Default(false) bool isAnonymous})
AuthUser model
const
factory
AuthUser.fromJson(Map<String, dynamic> json)
factory

Properties

authToken String?
no setterinherited
copyWith → $AuthUserCopyWith<AuthUser>
no setterinherited
email String?
no setterinherited
emailVerified bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
no setterinherited
isAnonymous bool
no setterinherited
isAppleLinked bool
Getter to determine if the account has apple linked
no setter
isEmpty bool
Convenience getter to determine whether the current user is empty.
no setter
isFacebookLinked bool
Getter to determine if the account has facebook linked
no setter
isGoogleLinked bool
Getter to determine if the account has google linked
no setter
isNotEmpty bool
Convenience getter to determine whether the current user is not empty.
no setter
name String?
no setterinherited
phone String?
no setterinherited
photo String?
no setterinherited
providers List<SocialProvider>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

empty → const AuthUser
Empty user which represents an unauthenticated user.