Led class Null safety

LED wrapper functions for Linux userspace sysfs LEDs.


Led(String name)
Open the sysfs LED with the specified name. [...]


hashCode int
The hash code for this object. [...]
read-only, inherited
name String
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


dispose() → void
Releases all interal native resoures.
getBrightness() int
Returns the brightness of the led.
getErrno() int
Returns the libc errno of the last failure that occurred.
getLedInfo() String
Returns a string representation of the led handle.
getLedName() String
Returns the name of the led.
getMaxBrightness() int
Returns the maximum possible brightness of the led.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
read() bool
Reads the state of the led.
setBrightness(int value) → void
Sets the brightness of the led to value.
toString() String
A string representation of this object. [...]
write(bool value) → void
Sets the state of the led to value.


operator ==(Object other) bool
The equality operator. [...]

Static Methods

getLedErrorCode(int value) LedErrorCode
Converts the native error code value to LedErrorCode.