requestCameraPermission method

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

Implementation

@override
Future<bool> requestCameraPermission() async {
  if (await checkCameraPermission()) {
    return true;
  } else {
    bool? result =
        await _methodChannel.invokeMethod('requestCameraPermission');
    return result ?? false;
  }
}