SwipeFeedState<T> class

Inheritance
  • Object
  • FortState<T>
  • SwipeFeedState

Constructors

SwipeFeedState({required FeedLoader<T> loader, required List<Tuple2<T?, Store<SwipeFeedCardState>>> items, required Widget noMoreItems, required Widget connectivityError, bool connectivity = false, bool hasMore = true, bool loading = false, List<T>? previousPolls, String? pageToken})
SwipeFeedState.initial(FeedLoader<T> loader, Widget noMoreItems, Widget connectivityError)
factory

Properties

box → BoxBase?
Get the box in which this object is stored. Returns null if object has not been added to a box yet.
no setterinherited
connectivity bool
getter/setter pair
connectivityError Widget
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasMore bool
States
getter/setter pair
isInBox bool
Returns whether this object is currently stored in a box.
no setterinherited
items List<Tuple2<T?, Store<SwipeFeedCardState>>>
Functional
getter/setter pair
key → dynamic
Get the key associated with this object. Returns null if object has not been added to a box yet.
no setterinherited
loader FeedLoader<T>
getter/setter pair
loading bool
getter/setter pair
noMoreItems Widget
Displays
getter/setter pair
pageToken String?
getter/setter pair
previousPolls List<T>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith(FortState<T> other) → FortState<T>
override
delete() Future<void>
Deletes this object from the box it is stored in.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save() Future<void>
Persists this object.
inherited
toJson() → dynamic
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

LENGTH_INCREASE_FACTOR → const int
Getters
LOAD_MORE_LIMIT → const int