documentExists method
Check if a file or directory exists without downloading
containerId is the iCloud Container Id.
relativePath is the relative path of the item on iCloud
Trailing slashes are allowed for directory paths returned by metadata.
Returns true if the file or directory exists, false otherwise
Implementation
@override
Future<bool> documentExists({
required String containerId,
required String relativePath,
}) async {
final result = await methodChannel.invokeMethod<bool>('documentExists', {
'containerId': containerId,
'relativePath': relativePath,
});
return result ?? false;
}