SimpleSpringListener class
- Implemented types
Constructors
- SimpleSpringListener({dynamic updateCallback(Spring spring)?, dynamic atRestCallback(Spring spring)?, dynamic activateCallback(Spring spring)?, dynamic endStateChangeCallback(Spring spring)?})
Properties
- activateCallback → (dynamic Function(Spring spring)?)
-
final
- atRestCallback → (dynamic Function(Spring spring)?)
-
final
- endStateChangeCallback → (dynamic Function(Spring spring)?)
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updateCallback → (dynamic Function(Spring spring)?)
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onSpringActivate(
Spring spring) → void -
called whenever the spring leaves its resting state
@param spring the spring that has left its resting state
override
-
onSpringAtRest(
Spring spring) → void -
called whenever the spring achieves a resting state
@param spring the spring that's now resting
override
-
onSpringEndStateChange(
Spring spring) → void -
called whenever the spring notifies of displacement state changes
@param spring the spring whose end state has changed
override
-
onSpringUpdate(
Spring spring) → void -
called whenever the spring is updated
@param spring the Spring sending the update
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited