utils/helpers library
Functions
-
calculateEndRotate(
RouletteGroup group, int targetIndex, bool clockwise, int minRotateCircles, {double offset = 0}) → double -
Calculate the end rotate value by
targetIndex. The returned value contains the circles to roll. Make sure when you run this method thegrouphas at least one RouletteUnit. -
makeAnimation(
AnimationController controller, double targetValue, Curve? curve, {double initialValue = 0}) → Animation< double> -
Make Animation from
controllerto begin rotate effect. Rotate final position istargetValue.
Typedefs
-
DoubleSelector<
T> = double Function(T source) -
IndexBuilder<
T> = T Function(int index)