drawPolygon method

void drawPolygon({
  1. required List<Point> vertices,
  2. required Color color,
  3. Command? mask,
  4. Channel maskChannel = Channel.luminance,
})

Implementation

void drawPolygon(
    {required List<Point> vertices,
    required Color color,
    Command? mask,
    Channel maskChannel = Channel.luminance}) {
  subCommand = DrawPolygonCmd(subCommand,
      vertices: vertices, color: color, mask: mask, maskChannel: maskChannel);
}