FirebaseAnimatedList constructor
FirebaseAnimatedList({
- Key? key,
- required Query query,
- required FirebaseAnimatedListItemBuilder itemBuilder,
- Comparator<
DataSnapshot> ? sort, - Widget? defaultChild,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- EdgeInsets? padding,
- 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);