getMaxTorchStrength method

  1. @override
Future<int> getMaxTorchStrength()
override

Returns the maximum torch strength level supported by the device. Returns 0 if not supported.

Implementation

@override
Future<int> getMaxTorchStrength() async {
  // Web doesn't support hardware torch access
  return 0;
}