stream property
- @JsonKey(includeFromJson: false, includeToJson: false)
Returns contents of this file as a broadcast Stream.
Once read, it cannot be rewinded.
Implementation
@JsonKey(includeFromJson: false, includeToJson: false)
Stream<List<int>>? get stream {
if (_readStream == null) return null;
_mergedStream ??= StreamGroup.mergeBroadcast([
if (bytes.value != null) _streamOfBytes(),
_readStream!,
]);
return _mergedStream;
}