LgConnectionSharedPref class

LgConnectionSharedPref to presist data in the app locally A utility class for managing and persisting lg session data locally using shared_preferences.

Constructors

LgConnectionSharedPref()

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

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

getAiIp() → String?
Retrieves the saved port number from the AI session.
getAiPort() → String?
Retrieves the saved IP address from the AI session.
getIP() → String?
Retrieves the saved IP address from the lg session.
getPassword() → String?
Retrieves the saved password from the lg session.
getPort() → String?
Retrieves the saved port number from the lg session.
getScreenAmount() → int?
Retrieves the saved screen amount from the lg session.
getUserName() → String?
Retrieves the saved username from the lg session.
getVoiceIp() → String?
Retrieves the saved IP address from the voice session.
getVoicePort() → String?
Retrieves the saved port number from the voice session.
init() → Future
Initializes the SharedPreferences instance for local data storage.
removeAiIp() → Future<void>
Removes the saved port number from the AI session.
removeAiPort() → Future<void>
Removes the saved IP address from the AI session.
removeIP() → Future<void>
Removes the saved IP address from the lg session.
removePassword() → Future<void>
Removes the saved password from the lg session.
removePort() → Future<void>
Removes the saved port number from the lg session.
removeScreenAmount() → Future<void>
Removes the saved screen amount from the lg session.
removeUserName() → Future<void>
Removes the saved username from the lg session.
removeVoiceIp() → Future<void>
Removes the saved IP address from the voice session.
removeVoicePort() → Future<void>
Removes the saved port number from the voice session.
setAiIp(String aiIp) → Future<void>
Sets the IP address for the AI session.
setAiPort(String aiPort) → Future<void>
Sets the port number for the AI session.
setIP(String ip) → Future<void>
Sets the IP address for the lg session.
setPassword(String pass) → Future<void>
Sets the password for the lg session.
setPort(String port) → Future<void>
Sets the port number for the lg session.
setScreenAmount(int screenAmount) → Future<void>
Sets the screen amount for the lg session.
setUserName(String userName) → Future<void>
Sets the username for the lg session.
setVoiceIP(String ip) → Future<void>
Sets the IP address for the voice session.
setVoicePort(String port) → Future<void>
Sets the port number for the voice session.