requestPermission method

  1. @override
Future<bool?> requestPermission()
override

Implementation

@override
Future<bool?> requestPermission() async {
  const int requestCode = 123;
  final isGranted = await methodChannel
      .invokeMethod<bool>('requestPermission', {'requestCode': requestCode});
  return isGranted;
}