onSpringEndStateChange method

  1. @override
void onSpringEndStateChange(
  1. Spring spring
)
override

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);
}