removeStroke method Null safety

bool removeStroke(
  1. Stroke stroke
)
inherited

Implementation

bool removeStroke(Stroke stroke) {
  if (strokes.remove(stroke)) {
    onStrokesChanged();
    return true;
  }
  return false;
}