IfElse constructor

const IfElse(
  1. bool condition(
    1. Map
    ),
  2. List<TurtleCommand> truePath,
  3. List<TurtleCommand> falsePath
)

Creates a new instance.

Implementation

const IfElse(this.condition, this.truePath, this.falsePath);