CactusSync class
Using notifyListeners mostly to reset states
Properties
- emitter → CactusEmitter
-
final
- graphqlRunner ↔ GraphqlRunner?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
models
↔ Map<
String, CactusModel< dynamic, JsonSerializable, dynamic, JsonSerializable, dynamic, JsonSerializable, dynamic, dynamic, JsonSerializable, dynamic> > -
============== Replication section ================
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- db ↔ CactusSync?
-
getter/setter pair
- isInitialized → bool
-
no setter
- l → SimpleLogger
-
final
Static Methods
-
attachModel<
TModel, TCreateInput extends JsonSerializable, TCreateResult, TUpdateInput extends JsonSerializable, TUpdateResult, TDeleteInput extends JsonSerializable, TDeleteResult, TGetResult, TFindInput extends JsonSerializable, TFindResult> (CactusModelBuilder< TModel, TCreateInput, TCreateResult, TUpdateInput, TUpdateResult, TDeleteInput, TDeleteResult, TGetResult, TFindInput, TFindResult> modelBuilder) → CactusModel<TModel, TCreateInput, TCreateResult, TUpdateInput, TUpdateResult, TDeleteInput, TDeleteResult, TGetResult, TFindInput, TFindResult> - Start point to include Model into db Model must be created from GraphQl schema
-
init<
TCacheShape> ({required GraphqlRunner graphqlRunner, Level loggerLevel = Level.OFF, bool loggerIncludeCallerInfo = false}) → CactusSync -
setRunner(
{GraphqlRunner? graphqlRunner}) → void - Sets new graphql runner (for example in case of http endpoint change) Will notify all states to reset their state.