Authenticator class

Inheritance
Implementers

Constructors

Authenticator.email({required String email, required String password, String? id = "", int? timeMills, String? name, String? phone, String? photo, String? username, Map<String, dynamic>? extra})
Authenticator.empty()
Authenticator.guest({String? id = "", int? timeMills, String? name, String? email, String? phone, String? photo, String? username, Map<String, dynamic>? extra})
Authenticator.oauth({String? id = "", int? timeMills, String? accessToken, String? idToken, String? name, String? email, String? phone, String? photo, Provider? provider, String? username, Map<String, dynamic>? extra})
Authenticator.otp({required String idToken, required String accessToken, String? id = "", int? timeMills, String? name, String? email, String? phone, String? photo, Provider? provider, String? username, Map<String, dynamic>? extra})
Authenticator.phone({required String phone, String? id = "", int? timeMills, String? name, String? email, String? photo, String? username, Map<String, dynamic>? extra})
Authenticator.username({required String username, required String password, String? id = "", int? timeMills, String? name, String? email, String? phone, String? photo, Map<String, dynamic>? extra})

Properties

accessToken String?
finalinherited
age int?
finalinherited
anonymous bool?
finalinherited
biometric bool?
finalinherited
dateTime DateTime
The timestamp as a DateTime object
no setterinherited
dateTimeOrNull DateTime?
The timestamp as a DateTime object, or null if invalid
no setterinherited
email String?
finalinherited
extra Map<String, dynamic>?
finalinherited
filtered Map<String, dynamic>
Returns the entity as a map with only insertable fields
no setterinherited
filteredJson String
Returns the filtered entity as a JSON string
no setterinherited
gender String?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
id String
The unique identifier of the entity as a string
no setterinherited
idInt int
The unique identifier of the entity as an integer
no setterinherited
idOrNull String?
finalinherited
idToken String?
finalinherited
ignoredKeys Iterable<String>
Returns keys that are ignored (not insertable)
no setterinherited
isAnonymous bool
no setterinherited
isAuthenticated bool
no setterinherited
isBiometric bool
no setterinherited
isLoggedIn bool
no setterinherited
isOnline bool
no setterinherited
isVerified bool
no setterinherited
json String
Returns the entity as a JSON string
no setterinherited
key AuthKeys
The key associated with the entity
no setterinherited
lastLoggedInDate DateTime
no setterinherited
lastLoggedInTime Duration
no setterinherited
lastLoggedOutDate DateTime
no setterinherited
lastLoggedOutTime Duration
no setterinherited
lastOnline DateTime?
no setterinherited
lastOnlineInDuration Duration
no setterinherited
loggedIn bool?
finalinherited
loggedInTime int?
finalinherited
loggedOutTime int?
finalinherited
name String?
finalinherited
online int?
finalinherited
password String?
finalinherited
path String?
finalinherited
phone String?
finalinherited
photo String?
finalinherited
platform String?
finalinherited
props Iterable<Object?>
no setterinherited
provider Provider?
finalinherited
random double?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source Map<String, dynamic>
Returns the entity as a map with all fields
no setterinherited
timeMills int
The timestamp in milliseconds since epoch
no setterinherited
timeMillsOrNull int?
finalinherited
token String?
finalinherited
username String?
finalinherited
verified bool?
finalinherited

Methods

copy({String? id, int? timeMills, String? accessToken, int? age, bool? anonymous, bool? biometric, String? email, Map<String, dynamic>? extra, String? gender, String? idToken, bool? loggedIn, int? loggedInTime, int? loggedOutTime, String? name, int? online, String? password, String? path, String? phone, String? photo, String? platform, Provider? provider, double? random, String? token, String? username, bool? verified}) Auth<AuthKeys>
inherited
equals(Object? e1, Object? e2) bool
Compare two elements for being equal.
inherited
hash(Object? o) int
Creates a combined hash code for a number of objects.
inherited
isInsertable(String key, dynamic value) bool
Checks if a field is insertable (valid key and non-null value)
inherited
isValidKey(Object? o) bool
Test whether an object is a valid argument to equals and hash.
inherited
iterableEquals<T>(Iterable<T> a, Iterable<T> b, {bool unordered = false, bool equals(T a, T b)?}) bool
inherited
makeKey() AuthKeys
Constructs the key for the entity.
inherited
modify<T extends Object>(Modifier<T>? current, T? old) → T?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notEquals(dynamic e1, dynamic e2) bool
Compare two elements for being not equal.
inherited
toString() String
A string representation of this object.
inherited
update({Modifier<String>? id, Modifier<int>? timeMills, Modifier<String>? accessToken, Modifier<int>? age, Modifier<bool>? anonymous, Modifier<bool>? biometric, Modifier<String>? email, Modifier<Map<String, dynamic>>? extra, Modifier<String>? gender, Modifier<String>? idToken, Modifier<bool>? loggedIn, Modifier<int>? loggedInTime, Modifier<int>? loggedOutTime, Modifier<String>? name, Modifier<int>? online, Modifier<String>? password, Modifier<String>? path, Modifier<String>? phone, Modifier<String>? photo, Modifier<String>? platform, Modifier<Provider>? provider, Modifier<double>? random, Modifier<String>? token, Modifier<String>? username, Modifier<bool>? verified}) Auth<AuthKeys>
inherited

Operators

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