SessionManager class
Constructors
- SessionManager()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAccessToken(
) → Future< String> -
getBool(
String key, {bool placeHolder = false}) → Future< bool> -
getDate(
String key) → Future< DateTime?> -
getExpiryDate(
) → Future< DateTime?> -
getFirebaseToken(
) → Future< String> -
getInt(
String key) → Future< int?> -
getString(
String key) → Future< String> -
getUserDetails(
) → Future< String> -
getUserId(
) → Future< int?> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setAccessToken(
String value) → dynamic - AccessToken
-
setBool(
String key, bool value) → dynamic - Boolean
-
setDate(
String key, DateTime value) → dynamic - Date
-
setExpiryDate(
DateTime value) → dynamic - ExpiryDate
-
setFirebaseToken(
String value) → dynamic - FirebaseToken
-
setInt(
String key, int value) → dynamic - Int
-
setString(
String key, String value) → dynamic - String
-
setUserDetails(
String value) → dynamic - UserDetails
-
setUserId(
int value) → dynamic - UserId
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- sessionManager → SessionManager
-
final
Constants
- accessToken → const String
- expiryDate → const String
- firebaseToken → const String
- userDetails → const String
- userId → const String