FeedState class

Inheritance

Constructors

FeedState({required bool loading, required int size, required List pendingItems, required List items, required bool hasMore, required String? token, required Map<String, bool> addedItems})
FeedState.initial([InitialFeedState? state])
factory

Properties

addedItems Map<String, bool>
The items that were manually added in
final
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
hashCode int
The hash code for this object.
no setterinherited
hasMore bool
Whether the feed has more items to load in
final
isInBox bool
Returns whether this object is currently stored in a box.
no setterinherited
items List
The displayed list of items
final
key → dynamic
Get the key associated with this object. Returns null if object has not been added to a box yet.
no setterinherited
loading bool
If the feed is currently loading items in
final
pendingItems List
The items cached to be displayed
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
The amount of items displayed
final
token String?
The token for the next list of items
final

Methods

copyWith(FortState<FeedState> other) → FortState<FeedState>
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

Static Properties

tower → Tower<FeedState>
no setter