RpcClientInfo class

Holds connection information for an RPC client

Mixed-in types
Available extensions

Constructors

RpcClientInfo({required String name, required String host, required int port, required String path})
Holds connection information for an RPC client

Properties

client → RpcClient
The actual RPC client instance
final
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
host ↔ String
Current host value
getter/setter pair
name → String
Name of the server (e.g., "Flutter" or "TypeScript")
final
path ↔ String
Current path value
getter/setter pair
port ↔ int
Current port value
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
connect() → Future<void>
Connect to the server using current parameters
disconnect() → Future<void>
Disconnect from the server
dispose() → void
Discards any resources used by the object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
restart() → Future<void>
Restart the connection
setState(VoidCallback fn) → void

Available on ChangeNotifier, provided by the AppChangeNotifierX extension

toString() → String
A string representation of this object.
inherited
updateConnection({String? host, int? port, String? path}) → void
Updates connection parameters and notifies listeners

Operators

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