remove method
Remove a particle from the system.
Implementation
void remove(Body particle) {
final idx = particles.indexOf(particle);
if (idx != -1) {
particles.removeAt(idx);
if (neighbors.length > particles.length) {
neighbors.removeLast();
}
}
}