onSpringEndStateChange method
called whenever the spring notifies of displacement state changes @param spring the spring whose end state has changed
Implementation
@override
void onSpringEndStateChange(Spring spring) {
endStateChangeCallback?.call(spring);
}