IdentityState class
- Inheritance
-
- Object
- State<
IdentityState> - IdentityState
Constructors
-
IdentityState.new({Set<
LoadingState> loadingStates = const {}, Set<Message> messages = const {}, Session session = const Session(), bool isLoggedIn = false, User user = const User(), String? accessToken, String? defaultOrgId, List<String> ? orgMemberships, String? defaultSpaceId, List<String> ? spaceMemberships, 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
- defaultOrgId → String?
-
final
- defaultSpaceId → String?
-
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
-
orgMemberships
→ List<
String> ? -
final
-
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
-
spaceMemberships
→ List<
String> ? -
final
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.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, String? defaultOrgId, List<String> ? orgMemberships, String? defaultSpaceId, List<String> ? spaceMemberships, dynamic resetToken = false, 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