addLine method

void addLine(
  1. Offset p1,
  2. Offset p2,
  3. int opacity
)

Implementation

void addLine(Offset p1, Offset p2, int opacity) {
  linesByOpacity.putIfAbsent(opacity, () => []).add((p1, p2));
}