FlipY constructor

FlipY({
  1. dynamic key,
  2. required Widget child,
  3. Duration duration = const Duration(milliseconds: 800),
  4. Duration delay = const Duration(milliseconds: 0),
  5. dynamic controller(
    1. AnimationController
    )?,
  6. bool manualTrigger = false,
  7. bool animate = true,
  8. dynamic onFinish(
    1. AnimateDoDirection direction
    )?,
  9. Curve curve = Curves.easeOut,
  10. double perspective = 400.0,
})

Implementation

FlipY({
  key,
  required this.child,
  this.duration = const Duration(milliseconds: 800),
  this.delay = const Duration(milliseconds: 0),
  this.controller,
  this.manualTrigger = false,
  this.animate = true,
  this.onFinish,
  this.curve = Curves.easeOut,
  this.perspective = 400.0,
}) : super(key: key) {
  if (manualTrigger == true && controller == null) {
    throw FlutterError('Si desea usar manualTrigger:true, \n\n'
        'Debe proporcionar la propiedad controller, que es un callback como:\n\n'
        ' ( controller: AnimationController) => yourController = controller \n\n');
  }
}