If class

Represents if..else flow control.

Implemented types
Annotations

Constructors

If(bool condition(Map), List<TurtleCommand> commands)
Creates a new instance.
const

Properties

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

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