duration property
How long any changes to the visual properties of this NeuToggle will
take to fully propagate and animate; changes could be either toggling its
state with a tap/click which will trigger onToggle with the current
status (bool
) or by changing one of the fields, such as padding.
Default is defaultDuration
(1200ms
) which, when paired with a springy
curve such as the default Curves.elasticOut, results in a delicious
bouncing neumorphic transition.
Implementation
final Duration duration;