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;
  if (file != null) {
    return file.openRead();
  }

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

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

  throw const InvalidFileException();
}