ChunkedStreamIterator<T> class
abstract
Auxiliary class for iterating over the items in a chunked stream.
A chunked stream is a stream in which items arrives in chunks with each
event from the stream. A common example is a byte stream with the type
Stream<List<int>>
. In such a byte stream bytes arrives in chunks
List<int>
for each event.
Note. methods on this class may not be called concurrently.
- Available extensions
- Annotations
-
- @sealed
- @Deprecated('Use ChunkedStreamReader from package:async instead.')
Constructors
-
ChunkedStreamIterator(Stream<
List< stream)T> > -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancel(
) → Future< void> - Cancels the stream iterator (and the underlying stream subscription) early.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
int size) → Future< List< T> > -
Returns a list of the next
size
elements. -
substream(
int size) → Stream< List< T> > -
Returns a sub-Stream with the next
size
elements. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited