MarshalledArray class

@fileoverview This as a platform-independent interface for a marshalled object. This enables sharing of ISerialisable objects with Dart VM/Dart native compiled code. Only used on types which are intermediate objects. Idea of ella's serialisation framework: Caller provides the type information, via either a factory or calling a specialized method.

Constructors

MarshalledArray(List<Object?> _array)

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

addFromIterable(Iterable<MarshalledObject> iterable) → void
asBool() List<bool>
Conversion methods which delegate to MarshalledObject
asDouble() List<double>
asDynamic() List
As dynamic: Expects that values are serialised using DynamicValueserialiser.
asInt() List<int>
asObject<T>(IUnmarshalFactory<T> objFactory) List<T>
As object
asRaw() List
As raw
asString() List<String>
clone() MarshalledArray
Clone array. (Shallow clone).
equals(MarshalledArray other) bool
Compare lists
get(int i) MarshalledObject
getRawList() List<Object?>
getRawValue() Object?
map<T>(IArrayMapFunction<T> mapFunction) List<T>
Map (helper method)
mapIntField(String field) Iterable<int>
Map array elements to the specified int field. Throws if field is null.
mapStringField(String field) Iterable<String>
Map array elements to the specified string field. Throws if field is null.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pushElement(Object? element) → void
set(int i, dynamic value) → void
size() int
toList() List<MarshalledObject>
Get list of intermediate objects
toObject() MarshalledObject
To object
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited