StreamConsumer class
A helper class that can be used to read data from a byte stream on demand.
- Inheritance
-
- Object
- StreamConsumerBase<
Uint8List> - StreamConsumer
Constructors
-
StreamConsumer.new(Stream<
Uint8List> stream) - UncompleteDocumentation
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> -
Dispose the consumer and cancel the underlying stream.
inherited
-
getLength(
Uint8List chunk) → int -
Returns the length of type
T
.override -
getSublistView(
Uint8List chunk, int start, int end) → Uint8List -
Returns a sublist view of type
T
fromstart
toend
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
int size) → Future< Uint8List?> -
Reads up to
size
bytes from the stream.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited