isTorchOn method

Future<bool?> isTorchOn()

是否打开闪光灯

Implementation

Future<bool?> isTorchOn() async {
  bool? isTorchOn = await RBarcode._isTorchOn();
  value = value.copyWith(isTorchOn: isTorchOn);
  return isTorchOn;
}