DataResolver<T extends DataObject> class
Defines how a DataObject is resolved to and from binary data.
Constructors
-
DataResolver(Function factory, [List<
Argument< arguments = const []])T, dynamic> > -
Defines how a DataObject is resolved to and from binary data.
const
Properties
-
arguments
→ List<
Argument< T, dynamic> > -
The arguments that are used to resolve the DataObject to and from binary
data.
final
- factory → Function
-
The factory that creates a DataObject of type
T
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of the data object.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
deserialize(
List< int> bytes) → T -
Deserialize the given
bytes
to a data object. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
T object) → List< int> -
Serialize the given
object
to bytes. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited