addStroke method Null safety

bool addStroke(
  1. Stroke stroke
)
inherited

Implementation

bool addStroke(Stroke stroke) {
  if (strokes.add(stroke)) {
    onStrokesChanged();
    return true;
  }
  return false;
}