ConnectionManager class

The ConnectionManager class provides methods for setting up and managing the connection parameters required to connect to the Oydabase server. It ensures only one instance of ConnectionManager is created and provides a static method to access that instance. It also includes methods for sending requests to the server and handling the responses.

Constructors

ConnectionManager()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
host String?
getter/setter pair
oydaBase String?
getter/setter pair
password String?
getter/setter pair
port String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
user String?
getter/setter pair

Methods

checkConnectionParams() → void
Checks if all the required connection parameters are provided.
getConnectionParams([Map<String, dynamic>? additionalParams]) Map<String, dynamic>
Retrieves the connection parameters as a map.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendRequest<T>(String endpoint, Map<String, dynamic> additionalParams) Future<T>
Sends a request to the specified endpoint with the given additionalParams.
setOydaBase(String? host, String? port, String? oydaBase, String? user, String? password) Future<void>
Sets the OYDA base configuration.
toString() String
A string representation of this object.
inherited
unsetOydabase() Future<void>
Unsets the Oydabase.

Operators

operator ==(Object other) bool
The equality operator.
inherited