FirebaseAnimatedList constructor

FirebaseAnimatedList({
  1. Key? key,
  2. required Query query,
  3. required FirebaseAnimatedListItemBuilder itemBuilder,
  4. Comparator<DataSnapshot>? sort,
  5. Widget? defaultChild,
  6. Axis scrollDirection = Axis.vertical,
  7. bool reverse = false,
  8. ScrollController? controller,
  9. bool? primary,
  10. ScrollPhysics? physics,
  11. bool shrinkWrap = false,
  12. EdgeInsets? padding,
  13. Duration duration = const Duration(milliseconds: 300),
})

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

Implementation

FirebaseAnimatedList({
  Key? key,
  required this.query,
  required this.itemBuilder,
  this.sort,
  this.defaultChild,
  this.scrollDirection = Axis.vertical,
  this.reverse = false,
  this.controller,
  this.primary,
  this.physics,
  this.shrinkWrap = false,
  this.padding,
  this.duration = const Duration(milliseconds: 300),
}) : super(key: key);