isTorchOn method

  1. @override
Future<bool> isTorchOn()
override

Returns the current torch state (true if on, false if off).

Implementation

@override
Future<bool> isTorchOn() async {
  // Web doesn't support hardware torch access
  return false;
}