removePath method Null safety

bool removePath(
  1. Path path
)

Implementation

bool removePath(Path path) {
  paintChanged();
  return paths.remove(path);
}