SunnyList<T>.ofVStream constructor

SunnyList<T>.ofVStream({
  1. required String id,
  2. ListTileBuilder<T>? itemBuilder,
  3. bool showDividers = false,
  4. KeyGenerator<T>? keyGenerator,
  5. DiffEquality diffEquality = const DiffEquality(),
  6. SunnyListDelegate<T?>? type,
  7. required Getter<ValueStream<Iterable<T?>>> vstream,
  8. bool? primary,
  9. Consumer<Iterable<T>>? onChange,
  10. bool reverse = false,
  11. bool useStateTracker = true,
  12. ScrollController? scrollController,
  13. bool? refreshWithPage,
  14. EdgeInsets? padding,
  15. AnimationType animationType = AnimationType.size,
  16. AnimationType dismissAnimationType = AnimationType.slide,
  17. bool? shrinkWrap,
  18. SunnyListWidgetBuilder<T>? emptyState,
  19. List<SwipeActionBuilder<T>> primarySwipeActions = const [],
  20. List<SwipeActionBuilder<T>> secondarySwipeActions = const [],
  21. SunnyListWidgetBuilder<T>? header,
  22. List<T>? start,
})

Reverses the list

Implementation

SunnyList.ofVStream({
  required this.id,
  this.itemBuilder,
  this.showDividers = false,
  this.keyGenerator,
  this.diffEquality = const DiffEquality(),
  SunnyListDelegate<T?>? type,
  required this.vstream,
  this.primary,
  this.onChange,
  this.reverse = false,
  this.useStateTracker = true,
  this.scrollController,
  this.refreshWithPage,
  this.padding,
  this.animationType = AnimationType.size,
  this.dismissAnimationType = AnimationType.slide,
  this.shrinkWrap,
  this.emptyState,
  this.primarySwipeActions = const [],
  this.secondarySwipeActions = const [],
  this.header,
  List<T>? start,
})  : _start = start,
      state = type ?? (() => SunnyListState()),
      super(key: Key(id));