generateLines method

  1. @protected
List<Line> generateLines(
  1. int numLines
)

Generates an amount of lines and initializes them.

Implementation

@protected
List<Line> generateLines(int numLines) => List<Line>.generate(numLines, (i) {
      final Line line = Line();
      initLine(line);
      return line;
    });