Fluq class

Fluq instance

Constructors

Fluq()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
dispose all the queries
disposeStream(dynamic key) → void
dispose a query by passing the key
getQueryStream(String id) → BehaviorSubject<QueryState>?
invalidateAllQuery() → void
use to invalidate all query stream and force to refetch of all of them
invalidateQuery(String key) → void
use to invalidate a single query stream and force to refetch
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prefetch<ResultType>(QueryModel<dynamic, ResultType> query) → void
use to programmatically fetch a query model and create the relative stream if not exist if the stream already exist it will do nothing
setQueryState(String key, QueryState state) → void
use to emit/update a specific query state on a stream pass the key of the query to update state and the new state
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

of(BuildContext context) Fluq
use to access the Fluq instance passing the context