Led class Null safety

LED wrapper functions for Linux userspace sysfs LEDs.

Constructors

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

Properties

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

Methods

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. [...]
inherited
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. [...]
inherited
write(bool value) → void
Sets the state of the led to value.

Operators

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

Static Methods

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