lightON method

Future<void> lightON()

turn on light

Implementation

Future<void> lightON() async {
  try {
    await channel?.invokeMethod('turnOnLight');
  } on PlatformException catch (e) {
    throw CodeScannerException(e.code, e.message);
  }
}