SunnyList<T>.ofVStream constructor
SunnyList<T>.ofVStream ({
- required String id,
- ListTileBuilder<
T> ? itemBuilder, - bool showDividers = false,
- KeyGenerator<
T> ? keyGenerator, - DiffEquality diffEquality = const DiffEquality(),
- SunnyListDelegate<
T?> ? type, - required Getter<
ValueStream< vstream,Iterable< >T?> > - bool? primary,
- Consumer<
Iterable< ? onChange,T> > - bool reverse = false,
- bool useStateTracker = true,
- ScrollController? scrollController,
- bool? refreshWithPage,
- EdgeInsets? padding,
- AnimationType animationType = AnimationType.size,
- AnimationType dismissAnimationType = AnimationType.slide,
- bool? shrinkWrap,
- SunnyListWidgetBuilder<
T> ? emptyState, - List<
SwipeActionBuilder< primarySwipeActions = const [],T> > - List<
SwipeActionBuilder< secondarySwipeActions = const [],T> > - SunnyListWidgetBuilder<
T> ? header, - 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));