requestMacStoragePermission method
Requests Mac storage permission from the user. Returns true if permission was granted. Example:
bool granted = await MethodChannelMediaManager().requestMacStoragePermission();
This method is specific to macOS and may not be available on other platforms. Ensure to check platform compatibility before using this method.
Implementation
@override
Future<bool> requestMacStoragePermission() async {
final bool result = await methodChannel.invokeMethod(
'requestMacStoragePermission',
);
return result;
}