setTorch static method

void setTorch(
  1. bool enable
)

Implementation

static void setTorch(bool enable) {
  _channel.invokeMethod('setTorch', <String, dynamic> {
    'enable': enable
  });
}