SwipeFeedController<T> class
Properties
-
collectiveState
→ InitialFeedState<T>
-
Get the collective state of items from the feed
no setter
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hasListeners
→ bool
-
Whether any listeners are currently registered.
no setterinherited
-
list
→ List
-
Retreives the list of items from the feed
no setter
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addCard(T item, [Function? onComplete])
→ void
-
Add an item to the feed, animates in by default
-
addListener(VoidCallback listener)
→ void
-
Register a closure to be called when the object changes.
inherited
-
asyncAdd(Future<T?> loader, Function onError)
→ Future<void>
-
Add future item
-
backgroundController()
→ AnimationSystemController?
-
-
displayStaticOverlayCardDelegate({bool runSimulation = false, SwipeCardSimulation simulation = SwipeCardSimulation.SwipeLeftRight, Duration duration = const Duration(seconds: 4)})
→ void
-
-
dispose()
→ void
-
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
override
-
loadMore()
→ void
-
Reloads the feed state based on the original size parameter
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners()
→ void
-
Call all the registered listeners.
inherited
-
refreshFeed()
→ void
-
Refreshes the feed replacing the page token
-
removeCard<T>([AdjustList<T>? then])
→ void
-
Removes an item from the feed, animates the item out of the feed by default
-
removeItemById(String id)
→ void
-
Removes item by Id from the feed, no animation
-
removeListener(VoidCallback listener)
→ void
-
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
removeOverlayCardDelegate({bool reverse = false})
→ void
-
-
reset()
→ Future<bool>
-
Reset the swipe feed back to it's initial state
By default this function calls refresh and will refresh the loader with a null pagetoken
-
reverseAnimations()
→ Future<void>
-
Reverse all animations back to starting positions
-
setCardState(FeedCardState state)
→ void
-
Set the card to the new state, if the card is not a null card
-
swipe(DismissDirection direction)
→ void
-
Swipe the top most card in the specified direction
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateCard(T item, String id)
→ void
-
Updates the current card at the top of the list