hasTorch method

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

Determine whether device has flash

Implementation

@override
Future<bool> hasTorch() async {
  return (await getSupportedTorchStates()).isNotEmpty;
}