Make input stream private in block reader
diff --git a/lib/src/utils.dart b/lib/src/utils.dart
index 25ff45b..4fa75b1 100644
--- a/lib/src/utils.dart
+++ b/lib/src/utils.dart
@@ -237,9 +237,9 @@
}
}
-/// An optimized reader reading 512-byte blocks from an [input] stream.
+/// An optimized reader reading 512-byte blocks from an input stream.
class BlockReader {
- final Stream<List<int>> input;
+ final Stream<List<int>> _input;
StreamSubscription<List<int>>? _subscription;
bool _isClosed = false;
@@ -280,7 +280,7 @@
/// starting at this offset.
int _offsetInTrailingData = 0;
- BlockReader(this.input);
+ BlockReader(this._input);
/// Emits full blocks.
///
@@ -403,7 +403,7 @@
final sub = _subscription;
if (sub == null) {
- _subscription = input.listen(_onData,
+ _subscription = _input.listen(_onData,
onError: _onError, onDone: _onDone, cancelOnError: true);
} else {
sub.resume();