ConversationsProvider class
- Inheritance
-
- Object
- ChangeNotifier
- ConversationsProvider
- Mixed-in types
-
- PaginatedRepository<
Conversation>
- PaginatedRepository<
Constructors
- ConversationsProvider.new(BuildContext context, {bool ignoreUpdatedAtOnSort = false})
Properties
- chunkSize → int
-
The size of the result of fetch.
no setteroverride
- context → BuildContext
-
final
-
conversations
↔ List<
Conversation> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- ignoreUpdatedAtOnSort → bool
-
final
- maxConcurrency → int
-
The number of parallel jobs to run at any given time.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
Conversation newConversation) → void -
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
count(
) → Future< int?> -
Counts the number of items.
override
-
delete(
String id) → 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).
inherited
-
fetch(
{int? limit, int? skip}) → Future< Iterable< Conversation> > -
override
-
fetchAll(
) → Future< Iterable< Conversation> > -
Fetches all items in parallel.
inherited
-
fetchInOrder(
) → Future< Iterable< Conversation> > -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
setup(
) → Future< void> - Loads conversations.
-
streamAll(
) → Stream< Iterable< Conversation> > -
The items are not garanted to be streamed in the same order they are
originally.
inherited
-
streamInOrder(
) → Stream< Iterable< Conversation> > -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited