AnimatedCard constructor

AnimatedCard({
  1. Key? key,
  2. required Widget child,
  3. AnimatedCardDirection direction = AnimatedCardDirection.right,
  4. void onRemove()?,
  5. Duration duration = const Duration(milliseconds: 600),
  6. Duration initDelay = const Duration(milliseconds: 200),
  7. Offset? initOffset,
  8. bool keepAlive = false,
  9. Curve curve = Curves.ease,
})

Implementation

AnimatedCard({
  Key? key,
  required this.child,
  this.direction = AnimatedCardDirection.right,
  this.onRemove,
  this.duration = const Duration(milliseconds: 600),
  this.initDelay = const Duration(milliseconds: 200),
  this.initOffset,
  this.keepAlive = false,
  this.curve = Curves.ease,
})  : assert(child != null),
      super(key: key ?? ((onRemove == null) ? null : UniqueKey()));