SessionConfig class
Constructors
- SessionConfig({Duration? invalidateSessionForUserInactivity, Duration? invalidateSessionForAppLostFocus})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- invalidateSessionForAppLostFocus → Duration?
-
mmediately invalidates the sesion after invalidateSessionForAppLostFocus duration of app losing focus
final
- invalidateSessionForUserInactivity → Duration?
-
Immediately invalidates the sesion after invalidateSessionForUserInactivity duration of user inactivity
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
SessionTimeoutState> -
Stream yields Map if session is valid, else null
no setter
Methods
-
dispose(
) → void - call dispose method to close the stream usually SessionConfig.stream should keep running until the app is terminated. But if your usecase requires closing the stream, call the dispose method
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pushAppFocusTimeout(
) → void - invalidate session and pass SessionTimeoutState.appFocusTimeout through stream
-
pushUserInactivityTimeout(
) → void - invalidate session and pass SessionTimeoutState.userInactivityTimeout through stream
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited