addForce method

void addForce(
  1. Force2D force
)

Implementation

void addForce(Force2D force) {
  _forces.removeWhere((element) => element.id == force.id);
  _forces.add(force);
}