ItemStack class

The decoded Dart item stack class.

Constructors

ItemStack()
Construction
ItemStack.fromList(List<DartItem> items)
From list

Properties

hashCode int
The hash code for this object.
no setterinherited
length int
Length
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Clear the stack;
errors() List<String>?
Check if any error entries are present in the stack. Returns a list of error strings if any are found, null if none are found.
hasErrors() bool
Quick check if the stack contains any errors.
isEmpty() bool
is Empty
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
peek() DartItem?
Peek the top stack item.
peekBottom() DartItem
Peek the bottom stack item.
pop() DartItem
Pop an item from the stack top.
popBottom() DartItem
Pop an item from the stack bottom.
push(DartItem item) → void
Push an item.
toList() List<DartItem>
toList
toString() String
A string representation of this object.
inherited
walk() List<DartItem>
Walk the stack

Operators

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