getBrightness method

int getBrightness()

Returns the brightness of the led.

Implementation

int getBrightness() {
  _checkStatus();
  var data = malloc<Int32>(1);
  try {
    _checkError(_nativeLedGetBrightness(_ledHandle, data));
    return data[0];
  } finally {
    malloc.free(data);
  }
}