Trying to write a permission code for camera and microphone on flutter
I'm currently using permission_handler: ^5.0.1 and have imported the package after adding the dependency in pubspec.yaml
import 'package:permission_handler/permission_handler.dart';
But when I used the following code,
await Permission.camera.request();
I have the following error.
Undefined name 'Permission'. Try correcting the name to one that is defined, or defining the name.
Any help will be appreciated. Thanks!