getPathCommands method

List<String> getPathCommands()

Implementation

List<String> getPathCommands() {
  var commands = [
    'M', // moveto
    'L', // lineto
    'H', // horizontal lineto
    'V', // vertical lineto
    'C', // curveto
    'S', // smooth curveto
    'Q', // quadratic Bezier curve
    'T', // smooth quadratic Bezier curveto
    'A', // elliptical Arc
    'Z', // closepath
  ];

  return [...commands, ...commands.map((e) => e.toLowerCase())];
}