SetMacro class
Sets a macro.
Macros are like functions in the DSL of flutter_turtle. You can register macros using SetMacro commands and run them using RunMacro.
- Implemented types
- Annotations
Constructors
-
SetMacro(String name, List<
TurtleCommand> commands) -
Creates a new instance.
const
Properties
-
commands
→ List<
TurtleCommand> -
Commands in the macro.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Name of the macro.
final
- 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