stream property

  1. @override
Stream<List<int>> get stream
override

Stream of the file content.

Implementation

@override
Stream<List<int>> get stream {
  final file = _inputFile ?? _inputBlob;
  if (file != null) {
    return _getReadStream(file);
  }

  final inputStream = _stream;
  if (inputStream != null) {
    return inputStream;
  }

  final inputBytes = super.bytes;
  if (inputBytes != null) {
    return Stream.value(inputBytes);
  }

  final path = super.path;
  if (path != null) {
    return _getReadStream(_resolvedBlob);
  }

  throw const InvalidFileException();
}