swipeFeed/state library

Functions

addItem<T>(T? item, {Function? onComplete, bool wait = true, bool overrideWait = false}) → ThunkAction<SwipeFeedState<T>>
Adds a new item to the top of the list
loadMore<T>() → ThunkAction<SwipeFeedState<T>>
populateInitialState<T>(InitialFeedState<T> state) → ThunkAction<SwipeFeedState<T>>
Hydrates the initial state from a pre-exsisting state
refresh<T>({Function? onComplete}) → ThunkAction<SwipeFeedState<T>>
Refreshes the feed, ensure null value at the end of the list
removeCard<T>() → ThunkAction<SwipeFeedState<T>>
Removes a card only after being swiped
removeItem<T>([AdjustList<T>? then]) → ThunkAction<SwipeFeedState<T>>
Removes a card from the list, do not use when the card is being swiped
removeItemById<T>(String id, String objectKey(T)) → ThunkAction<SwipeFeedState<T>>
removeItemIfNotFirst<T>(T item, String compare(T)) → ThunkAction<SwipeFeedState<T>>
setConnectivityReducer(SwipeFeedState state, dynamic event) bool
setHasMoreReducer(SwipeFeedState state, dynamic event) bool
setItemsReducer<T>(SwipeFeedState<T> state, dynamic event) List<Tuple2<T?, Store<SwipeFeedCardState>>>
setLoadingReducer(SwipeFeedState state, dynamic event) bool
setPageTokenReducer(SwipeFeedState state, dynamic event) String?
setPreviousPollsReducer<T>(SwipeFeedState<T> state, dynamic event) List<T>?
shiftAdd<T>(List<Tuple2<T?, Store<SwipeFeedCardState>>> oldItems, List<Tuple2<T, Store<SwipeFeedCardState>>> newItems) List<Tuple2<T?, Store<SwipeFeedCardState>>>
swipeFeedStateReducer<T>(SwipeFeedState<T> state, dynamic event) SwipeFeedState<T>
updateItem<T>(T item, String id, String objectKey(T)) → ThunkAction<SwipeFeedState<T>>
updates an item in the feed
updateNullableItem<T>(T newItem, {Function? beforeUpdate}) → ThunkAction<SwipeFeedState<T>>