Repeat class
Asks the turtle to run a series of commands repeatedly.
Please note that the command contained could get how many times the
loop has been repeated by the variable repcount
.
- Implemented types
- Annotations
Constructors
-
Repeat(int times(Map), List<
TurtleCommand> commands) -
Creates a new instance.
const
Properties
-
commands
→ List<
TurtleCommand> -
The commands to run.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- times → int Function(Map)
-
How many times to repeat.
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