drawLine method

void drawLine({
  1. required int x1,
  2. required int y1,
  3. required int x2,
  4. required int y2,
  5. required Color color,
  6. bool antialias = false,
  7. num thickness = 1,
  8. Command? mask,
  9. Channel maskChannel = Channel.luminance,
})

Implementation

void drawLine(
    {required int x1,
    required int y1,
    required int x2,
    required int y2,
    required Color color,
    bool antialias = false,
    num thickness = 1,
    Command? mask,
    Channel maskChannel = Channel.luminance}) {
  subCommand = DrawLineCmd(subCommand,
      x1: x1,
      y1: y1,
      x2: x2,
      y2: y2,
      color: color,
      antialias: antialias,
      thickness: thickness,
      mask: mask,
      maskChannel: maskChannel);
}