FirestoreAnimatedList<T> constructor
FirestoreAnimatedList<T> ({
- Key? key,
- required Query<
T> query, - required FirestoreAnimatedListItemBuilder<
T> itemBuilder, - dynamic onLoaded(
- QuerySnapshot<
T>
- QuerySnapshot<
- FilterCallback<
T> ? filter, - Widget? defaultChild,
- Widget? errorChild,
- Widget? emptyChild,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- bool debug = false,
- bool linear = 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
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);