AuthKeys class

Create an authorized key class for User:

class UserKeys extends AuthKeys {
  final address = "address";
  final contact = "contact";

  const UserKeys._();

  static UserKeys? _i;

  static UserKeys get i => _i ??= const UserKeys._();
}
Inheritance

Constructors

AuthKeys({String id = "id", String timeMills = "time_mills", String accessToken = "access_token", String biometric = "biometric", String email = "email", String extra = "extra", String idToken = "id_token", String loggedIn = "logged_in", String loggedInTime = "logged_in_time", String loggedOutTime = "logged_out_time", String name = "name", String password = "password", String phone = "phone", String photo = "photo", String provider = "provider", String username = "username", String verified = "verified"})
const

Properties

accessToken String
final
biometric String
final
email String
final
extra String
final
hashCode int
The hash code for this object.
no setterinherited
id String
The ID key.
finalinherited
idToken String
final
loggedIn String
final
loggedInTime String
final
loggedOutTime String
final
name String
final
password String
final
phone String
final
photo String
final
provider String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeMills String
The timestamp key.
finalinherited
username String
final
verified String
final

Methods

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

Operators

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

Static Properties

i AuthKeys
no setter

Constants

key → const String