hasExternalStoragePermission method
Android特有的方法:检查外部存储权限是否已被授予 返回true表示已授予读写外部存储权限,false表示未授予
Implementation
@override
Future<bool> hasExternalStoragePermission() async {
final result = await methodChannel.invokeMethod<bool>(
'hasExternalStoragePermission',
);
return result ?? false;
}