removeMiddlePoint method
Removes the point on index
^th place from the link.
Middle points are indexed from 1.
Implementation
void removeMiddlePoint(int index) {
assert(linkPoints.length > 2);
assert(index > 0);
assert(index < linkPoints.length - 1);
linkPoints.removeAt(index);
notifyListeners();
}