generatePoints method
void
generatePoints(
)
override
Implementation
@override
void generatePoints() {
var pattern = '[${getPathCommands().join()}]';
var regex = RegExp(pattern);
var commands =
regex.allMatches(pathString).map((e) => e.group(0)!).toList();
var coordStrings = withoutFirst(pathString.split(regex));
String? prevCommand;
for (var i in range(end: commands.length)) {
var command = commands[i];
var coordString = coordStrings[i];
handleCommand(command, coordString, prevCommand ?? '');
prevCommand = command;
}
rotate(PI, axis: RIGHT, aboutPoint: ORIGIN);
}