hasCameraPermission method

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

Checks if the device has camera permission

Implementation

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