lines property

List<SketchLine> get lines

Returns the list of lines that should be drawn on the canvas by combining the sketches lines with the current active line if it exists.

Implementation

List<SketchLine> get lines => map(
      drawing: (d) => d.activeLine == null
          ? sketch.lines
          : [...sketch.lines, d.activeLine!],
      erasing: (d) => d.sketch.lines,
    );