hasStoragePermission method

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

Returns true if the app already has storage / media-read permission.

Implementation

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