getMaxBrightness method

int getMaxBrightness()

Returns the maximum possible brightness of the led.

Implementation

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