FirestoreAnimatedList<T> constructor

FirestoreAnimatedList<T>({
  1. Key? key,
  2. required Query<T> query,
  3. required FirestoreAnimatedListItemBuilder<T> itemBuilder,
  4. dynamic onLoaded(
    1. QuerySnapshot<T>
    )?,
  5. FilterCallback<T>? filter,
  6. Widget? defaultChild,
  7. Widget? errorChild,
  8. Widget? emptyChild,
  9. Axis scrollDirection = Axis.vertical,
  10. bool reverse = false,
  11. bool debug = false,
  12. bool linear = false,
  13. ScrollController? controller,
  14. bool? primary,
  15. ScrollPhysics? physics,
  16. bool shrinkWrap = false,
  17. EdgeInsets? padding,
  18. Duration duration = const Duration(milliseconds: 300),
})

Creates a scrolling container that animates items when they are inserted or removed.

Implementation

FirestoreAnimatedList({
  Key? key,
  required this.query,
  required this.itemBuilder,
  this.onLoaded,
  this.filter,
  this.defaultChild,
  this.errorChild,
  this.emptyChild,
  this.scrollDirection = Axis.vertical,
  this.reverse = false,
  this.debug = false,
  this.linear = false,
  this.controller,
  this.primary,
  this.physics,
  this.shrinkWrap = false,
  this.padding,
  this.duration = const Duration(milliseconds: 300),
}) : super(key: key);