hasCameraPermission method

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

Checks if the app has camera permission

Implementation

@override
Future<bool> hasCameraPermission() async {
  final hasPermission = await methodChannel.invokeMethod<bool>(
    'hasCameraPermission',
  );
  return hasPermission ?? false;
}