Roulette constructor

Roulette({
  1. dynamic key,
  2. required Widget child,
  3. Duration duration = const Duration(milliseconds: 3500),
  4. Duration delay = const Duration(milliseconds: 0),
  5. bool infinite = false,
  6. dynamic controller(
    1. AnimationController
    )?,
  7. bool manualTrigger = false,
  8. bool animate = true,
  9. double spins = 2,
})

Implementation

Roulette(
    {key,
    required this.child,
    this.duration = const Duration(milliseconds: 3500),
    this.delay = const Duration(milliseconds: 0),
    this.infinite = false,
    this.controller,
    this.manualTrigger = false,
    this.animate = true,
    this.spins = 2})
    : super(key: key) {
  if (manualTrigger == true && controller == null) {
    throw FlutterError('If you want to use manualTrigger:true, \n\n'
        'Then you must provide the controller property, that is a callback like:\n\n'
        ' ( controller: AnimationController) => yourController = controller \n\n');
  }
}