AuthUser class
Firebase Auth user
Constructors
-
AuthUser(Map<
String, dynamic> _data, {required String id, required String name, required String? picture, required String email, required bool isEmailVerified, required String signInProvider, required int iat}) -
User auth obj constructor
const
-
AuthUser.fromMap(Map<
String, dynamic> data) -
create user from data map
factory
Properties
- email → String
-
The email address of user
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- iat → int
-
Time of token generation
final
- id → String
-
Unique user id
final
- isEmailVerified → bool
-
Has the email address been verified?
final
- name → String
-
The name of the user
which can also be email when not given
final
- picture → String?
-
Picture url if set
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signInProvider → String
-
How did the user authenticate (password/google/apple/...)
final
- sip → Sip
-
Get a statically typed reference of the sign in provider
no setter
Methods
-
getCustomClaim(
String name) → dynamic - Extract custom claim from the token
-
getCustomClaims<
T> (T creator(Map< String, dynamic> data)) → T - Create your own custom claims object from the raw data in the token
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override