hasFlash method

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

Checks if flash is available on the device

Implementation

@override
Future<bool> hasFlash() async {
  try {
    final result = await methodChannel.invokeMethod<bool>('hasFlash');
    return result ?? false;
  } on PlatformException catch (e) {
    throw _handlePlatformException(e);
  }
}