hasCameraPermission method
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);
}
}