OpenRGBSyncClient class
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverVersion ↔ int
-
getter/setter pair
Methods
-
disconnect(
) → void -
getAllControllers(
) → List< RGBController> - Get controller data of all controllers.
-
getControllerCount(
) → int - Get the number of controllers connected to the server.
-
getControllerData(
int deviceId) → RGBController -
Get controller data of one device with given
deviceId. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readPkt(
) → RawNetPacket -
setCustomMode(
int deviceId) → void -
Sets custom mode for given
deviceId. Custom mode is a mode that allows you to set the colors of the LEDs individually (Depending on device's capabilities). -
setMode(
int deviceId, int modeID, Color color) → void -
Sets a mode with given
modeIDondeviceId.colorparameter does not always apply to all modes. -
toString(
) → String -
A string representation of this object.
inherited
-
updateLeds(
int deviceId, int numColors, Color color) → void - Updates all LEDs with one color.
-
updateSingleLed(
int deviceId, int ledID, Color color) → void -
Sets the
colorof the given LED for the givendeviceId.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
connect(
{String host = '127.0.0.1', int port = 6742, String? clientName}) → OpenRGBSyncClient - First function to call to connect to the server.