writeInPlaceBytes method
Write a file in place as bytes inside the iCloud container using coordinated access.
containerId is the iCloud Container Id.
relativePath is the relative path to the file inside the container.
contents is the full contents to write.
Trailing slashes are rejected here because writes are file-centric. Coordinated access uses UIDocument/NSDocument and writes the full contents as a single operation. Use for small files.
Implementation
@override
Future<void> writeInPlaceBytes({
required String containerId,
required String relativePath,
required Uint8List contents,
}) async {
await methodChannel.invokeMethod('writeInPlaceBytes', {
'containerId': containerId,
'relativePath': relativePath,
'contents': contents,
});
}