slang
slang copied to clipboard
Combine lists and enums
Motivation I want to use lists from a csv in combination with a custom enum.
E.g: I have multiple sets of instruction with a different number of steps. In code i want to access it like this:
final instructions = t.instructions(context: level);
...
List.generate(instructions.length, (index) => Text(instructions[index])),