Add a line to the batch
void addLine(Offset p1, Offset p2, int opacity) { linesByOpacity.putIfAbsent(opacity, () => []).add((p1, p2)); }