curve property

Curve curve
final

The Curve by which to implicitly animate any changes to the properties of this NeuToggle. Specifically, altering one of the fields in constructor or toggling the state by tap/click will animate changes over this animation curve.

Default is Curves.elasticOut which, when paired with a longer duration such as the default defaultDuration (1200ms), results in a delicious bouncing neumorphic transition.

Implementation

final Curve curve;