ZMessage class
ZMessage provides a list-like container interface, with methods to work with the overall container. ZMessage messages are composed of zero or more ZFrame objects.
- Implemented types
- Available Extensions
Constructors
- ZMessage()
Properties
- first → ZFrame
-
The first element.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Whether this collection has no elements.
no setteroverride
- isNotEmpty → bool
-
Whether this collection has at least one element.
no setteroverride
-
iterator
→ Iterator<
ZFrame> -
A new
Iterator
that allows iterating the elements of thisIterable
.no setteroverride - last → ZFrame
-
The last element.
no setteroverride
- length → int
-
The number of elements in this.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- single → ZFrame
-
Checks that this iterable has only one element, and returns that element.
no setteroverride
Methods
-
add(
ZFrame value) → void -
Adds
value
at the end of the queue.override -
addAll(
Iterable< ZFrame> iterable) → void -
Adds all elements of
iterable
at the end of the queue. The length of the queue is extended by the length ofiterable
.override -
addFirst(
ZFrame value) → void -
Adds
value
at the beginning of the queue.override -
addLast(
ZFrame value) → void -
Adds
value
at the end of the queue.override -
any(
bool test(ZFrame element)) → bool -
Checks whether any element of this iterable satisfies
test
.override -
cast<
R> () → Queue< R> -
Provides a view of this queue as a queue of
R
instances, if necessary.override -
clear(
) → void -
Removes all elements in the queue. The size of the queue becomes zero.
override
-
contains(
Object? element) → bool -
Whether the collection contains an element equal to
element
.override -
elementAt(
int index) → ZFrame -
Returns the
index
th element.override -
every(
bool test(ZFrame element)) → bool -
Checks whether every element of this iterable satisfies
test
.override -
expand<
T> (Iterable< T> toElements(ZFrame element)) → Iterable<T> -
Expands each element of this Iterable into zero or more elements.
override
-
firstWhere(
bool test(ZFrame element), {ZFrame orElse()?}) → ZFrame -
The first element that satisfies the given predicate
test
.override -
fold<
T> (T initialValue, T combine(T previousValue, ZFrame element)) → T -
Reduces a collection to a single value by iteratively combining each
element of the collection with an existing value
override
-
followedBy(
Iterable< ZFrame> other) → Iterable<ZFrame> -
Creates the lazy concatenation of this iterable and
other
.override -
forEach(
void action(ZFrame element)) → void -
Invokes
action
on each element of this iterable in iteration order.override -
join(
[String separator = '']) → String -
Converts each element to a String and concatenates the strings.
override
-
lastWhere(
bool test(ZFrame element), {ZFrame orElse()?}) → ZFrame -
The last element that satisfies the given predicate
test
.override -
map<
T> (T toElement(ZFrame e)) → Iterable< T> -
The current elements of this iterable modified by
toElement
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reduce(
ZFrame combine(ZFrame value, ZFrame element)) → ZFrame -
Reduces a collection to a single value by iteratively combining elements
of the collection using the provided function.
override
-
remove(
Object? value) → bool -
Removes a single instance of
value
from the queue.override -
removeFirst(
) → ZFrame -
Removes and returns the first element of this queue.
override
-
removeLast(
) → ZFrame -
Removes and returns the last element of the queue.
override
-
removeWhere(
bool test(ZFrame element)) → void -
Removes all elements matched by
test
from the queue.override -
retainWhere(
bool test(ZFrame element)) → void -
Removes all elements not matched by
test
from the queue.override -
singleWhere(
bool test(ZFrame element), {ZFrame orElse()?}) → ZFrame -
The single element that satisfies
test
.override -
skip(
int count) → Iterable< ZFrame> -
Creates an Iterable that provides all but the first
count
elements.override -
skipWhile(
bool test(ZFrame value)) → Iterable< ZFrame> -
Creates an
Iterable
that skips leading elements whiletest
is satisfied.override -
take(
int count) → Iterable< ZFrame> -
Creates a lazy iterable of the
count
first elements of this iterable.override -
takeWhile(
bool test(ZFrame value)) → Iterable< ZFrame> -
Creates a lazy iterable of the leading elements satisfying
test
.override -
toList(
{bool growable = true}) → List< ZFrame> -
Creates a List containing the elements of this Iterable.
override
-
toSet(
) → Set< ZFrame> -
Creates a Set containing the same elements as this iterable.
override
-
toString(
) → String -
A string representation of this object.
override
-
where(
bool test(ZFrame element)) → Iterable< ZFrame> -
Creates a new lazy Iterable with all elements that satisfy the
predicate
test
.override -
whereType<
T> () → Iterable< T> -
Creates a new lazy Iterable with all elements that have type
T
.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited