SharedPrefs class
Constructors
Properties
- accessToken → String
-
no setter
- baseURL → String
-
no setter
- customerMobileNumber → String
-
no setter
- deviceBrand → String
-
no setter
- deviceId → String
-
no setter
- deviceModel → String
-
no setter
- deviceOS → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- module → String
-
no setter
- refreshToken → String
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userName → String
-
no setter
- userPassword → String
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getAccessToken(
) → Future< String> -
getBaseURL(
) → Future< String> -
getCustomerMobileNumber(
) → Future< String> -
getDeviceBrand(
) → Future< String> -
getDeviceId(
) → Future< String> -
getDeviceModel(
) → Future< String> -
getDeviceOS(
) → Future< String> -
getModule(
) → Future< String> -
getRefreshToken(
) → Future< String> -
getUserName(
) → Future< String> -
getUserPassword(
) → Future< String> -
saveConfig(
{required String baseURL, required String userName, required String userPassword, required String module, required String customerMobileNumber}) → dynamic -
saveDeviceInfo(
{required String deviceOS, required String deviceBrand, required String deviceModel, required String deviceId}) → dynamic -
saveTokens(
{required String accessToken, required String refreshToken}) → Future< void>