UserBlock class

Constructors

UserBlock({required UserServiceClient grpcUserClient, required Authorize authorize, required String? jwtPublicKey, required SharedPreferences sharedPreferences, bool? debug, String? encryptionKey, Function? onLogin, Function? onLogout, bool? recordActive})

Properties

debug bool?
latefinal
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sharedPreferences ↔ SharedPreferences
latefinal

Methods

create({String? userId, String? username, String? email, String? image, String? password, dynamic metadata}) Future<User>
getAccessToken() Future<String>
getCurrentUser() Future<User>
initializeApplication() Future<Config>
isAuthenticated() Future<bool>
login({String? userId, String? username, String? email, required String password}) Future<LoginSession>
logout() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordActiveMeasurement(int seconds, String activeId, String userId) Future<void>
toString() String
A string representation of this object.
inherited
updateEmail({String? userId, String? username, String? currentEmail, required String newEmail}) Future<User>
updatePassword({String? userId, String? username, String? currentEmail, required String newPassword}) Future<User>
verifyEmailCode({String? userId, String? username, String? email, required String code}) Future<void>

Operators

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