BinaryConversion<T> class
abstract
An ongoing conversion of binary data to a Dart object.
A BinaryConversion consumes binary data received from calls to add or addAll and converts it to a Dart object.
A BinaryConversion is never complete. Once a value is produced by the conversion, it is started over and further calls to add and addAll start building another object.
The conversion may be discarded at any time, though flush should be called to ensure no object is currently being built.
- Implementers
Constructors
- BinaryConversion(void _onValue(T))
- Create a BinaryConversion with the specified callback.
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
-
add(
Uint8List data) → int -
Add
datato this conversion. -
addAll(
Uint8List data) → void -
Adds all of
datato this conversion. -
flush(
) → void - Ensure this conversion is not currently deserializing a Dart object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onValue(
T value) → void - Called when the conversion produces a value in response to an add or addAll call.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited