IdentityState class

Inheritance

Constructors

IdentityState({Set<LoadingState> loadingStates = const {}, Set<Message> messages = const {}, Session session = const Session(), bool isLoggedIn = false, User user = const User(), String? accessToken, Verification? awaitingVerification, AuthType? awaitingLogin, String? totpSetupSecret, Uri? totpSetupUri})
const

Properties

accessToken String?
final
additionalProps List<Object?>
The concrete class must implement this method to return a list of additional properties that are specific to the concrete class.
no setteroverride
awaitingLogin AuthType?
final
awaitingVerification Verification?
final
hasError → dynamic
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isAttribVerificationProgress bool
no setter
isLoggedIn bool
final
isLoginInProgress bool
no setter
isPasswordResetInitiated bool
no setter
isPasswordResetInProgress bool
no setter
isSignUpInProgress bool
no setter
isTOTPSetupInitiated bool
no setter
isTOTPSetupInProgress bool
no setter
loadingStates Set<LoadingState>
finalinherited
messages Set<Message>
finalinherited
needsSignUpConfirmation bool
no setter
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
session Session
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
totpSetupSecret String?
final
totpSetupUri Uri?
final
user User
final

Methods

addMessage(Message message, [Object? error, StackTrace? stackTrace]) IdentityState
inherited
clearMessages() IdentityState
inherited
copyWith({Set<LoadingState>? loadingStates, Set<Message>? messages, Session? session, bool? isLoggedIn, User? user, String? accessToken, Verification? awaitingVerification, dynamic resetAwaitingVerification = false, AuthType? awaitingLogin, dynamic resetAwaitingLogin = false, String? totpSetupSecret, Uri? totpSetupUri, dynamic resetTOTPSetup = false}) IdentityState
The concrete class must implement this method to return a new instance of the state with the given parameters.
override
endLoading(LoadingState loadingState) IdentityState
inherited
isLoading(List<LoadingState> loadingStates) bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
peekMessage() → Message?
inherited
removeMessage(Message message) IdentityState
inherited
startLoading(LoadingState loadingState, {dynamic clearMessages = true}) IdentityState
inherited
toString() String
A string representation of this object.
inherited

Operators

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