User class

Constructors

User.fromJson(Map<String, dynamic> json, String baseUrl, String appToken)

Properties

appToken String
final
baseUrl String
final
deviceId String
final
groupInvites List<GroupInviteReqList>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
jwt String
getter/setter pair
mfa bool
getter/setter pair
refreshToken String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userId String
final

Methods

acceptGroupInvites(String groupIdToAccept) Future<void>
changePassword(String oldPassword, String newPassword, [String? mfaToken, bool? mfaRecovery]) Future<void>
createGroup() Future<String>
deleteDevice(String password, String deviceId, [String? mfaToken, bool? mfaRecovery]) Future<void>
deleteJoinReq(String id) Future<void>
deleteUser(String password, [String? mfaToken, bool? mfaRecovery]) Future<void>
disableOtp(String password, [String? mfaToken, bool? mfaRecovery]) Future<void>
enabledMfa() bool
getDevices([UserDeviceList? lastFetchedItem]) Future<List<UserDeviceList>>
getFreshJwt(String userIdentifier, String password, [String? mfaToken, bool? mfaRecovery]) Future<String>
getGroup(String groupId, [String? groupAsMember]) Future<Group>
getGroupInvites([GroupInviteReqList? lastItem]) Future<List<GroupInviteReqList>>
getGroups([ListGroups? lastFetchedItem]) Future<List<ListGroups>>
getJwt() Future<String>
getOtpRecoverKeys(String password, [String? mfaToken, bool? mfaRecovery]) Future<List<String>>
groupJoinRequest(String groupId) Future<void>
logOut() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerDevice(String serverOutput) Future<void>
registerOtp(String issuer, String audience, String password, [String? mfaToken, bool? mfaRecovery]) Future<(String, List<String>)>
registerRawOtp(String password, [String? mfaToken, bool? mfaRecovery]) Future<OtpRegister>
rejectGroupInvite(String groupIdToReject) Future<void>
resetOtp(String issuer, String audience, String password, [String? mfaToken, bool? mfaRecovery]) Future<(String, List<String>)>
resetRawOtp(String password, [String? mfaToken, bool? mfaRecovery]) Future<OtpRegister>
sentJoinReq([GroupInviteReqList? lastFetchedItem]) Future<List<GroupInviteReqList>>
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited
updateUser(String newIdentifier) Future<void>

Operators

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