torchMode property
控制相机开关回调函数 PhoneTorch ON or OFF
Implementation
@override
set torchMode(CaptureTorchMode mode) {
var isOn = mode == CaptureTorchMode.on;
assert(_methodChannel != null,
"_methodChannel can not be null. Please call onPlatformViewCreated first");
_methodChannel?.invokeMethod('setTorchMode', isOn);
}