getContents method

Stream<ShareItemChunk>? getContents([
  1. int? chunkSize
])

Fetch the contents of the shared file

for {chunkSize}: chunk size in bytes if set to a value <= 0: the actually used chunk size will be automatically determined based on filesize and free memory heap if set to a value > 0: this value will be used if not set: a chunk size of 10 MiB will be used

Implementation

Stream<ShareItemChunk>? getContents([int? chunkSize]) {
  if (this.type == ShareItemType.TEXT) {
    return null;
  }

  return CobiFlutterSharePlatform.instance.fetchContents(this.data, chunkSize);
}