Mutable first-in, first-out state returned by useQueue.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Whether the queue contains no values.
no setter
- isNotEmpty → bool
-
Whether the queue contains at least one value.
no setter
- length → int
-
The number of queued values.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
value
→ List<
T> -
An unmodifiable live view ordered from the front to the back.
no setter
Methods
-
clear(
) → void - Removes every value, skipping the update when already empty.
-
dequeue(
) → T - Removes and returns the front value.
-
enqueue(
T item) → void -
Adds
itemto the back of the queue. -
enqueueAll(
Iterable< T> items) → void -
Adds
itemsto the back, skipping the update whenitemsis empty. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
replaceAll(
Iterable< T> items) → void - Replaces the queue when its ordered contents differ.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited