getLedName method

String getLedName()

Returns the name of the led.

Implementation

String getLedName() {
  _checkStatus();
  var data = malloc<Int8>(bufferLen).cast<Utf8>();
  try {
    _checkError(_nativeLedName(_ledHandle, data, bufferLen));
    return data.toDartString();
  } finally {
    malloc.free(data);
  }
}