IfElse class

Represents if..else flow control.

Implemented types
Annotations

Constructors

IfElse(bool condition(Map), List<TurtleCommand> truePath, List<TurtleCommand> falsePath)
Creates a new instance.
const

Properties

condition bool Function(Map)
The condition.
final
falsePath List<TurtleCommand>
The commands to run when the condition is false.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
truePath List<TurtleCommand>
The commands to run when the condition is true.
final

Methods

createInstruction(TurtleState turtle, Map argv) List<Instruction>
Creates instructions.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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