QueryLoggingObserver class
An observer to log changes in queries and mutations.
- Implemented types
Constructors
- QueryLoggingObserver({bool colors = true, bool verbose = false, bool mutationCreation = true, bool mutationReuse = true, bool queryCreation = true, bool queryDeletion = true, bool queryChange = true, bool queryError = true, bool mutationError = true, bool mutationChange = true})
-
An observer to log changes in queries and mutations.
const
Properties
- colors → bool
-
Whether to log with colors. Defaults to true.
On IOS often colors are not supported.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mutationChange → bool
-
Whether to log when a mutation changes.
final
- mutationCreation → bool
-
Whether to log when a mutation is created.
final
- mutationError → bool
-
Whether to log when a mutation errors.
final
- mutationReuse → bool
-
Whether to log when a mutation is reused.
final
- queryChange → bool
-
Whether to log when a query changes.
final
- queryCreation → bool
-
Whether to log when a query is created.
final
- queryDeletion → bool
-
Whether to log when a query is deleted.
final
- queryError → bool
-
Whether to log when a query errors.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- verbose → bool
-
Whether to log the query change state data rather than the state status.
Defaults to false.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onChange(
QueryBase query, QueryState nextState) → void -
Called when a query state is updated.
override
-
onError(
QueryBase query, StackTrace stackTrace) → Future< void> -
Called if a query fails.
override
-
onMutationChange(
Mutation mutation, MutationState nextState) → void -
Called when the state of a mutation changes.
override
-
onMutationCreation(
Mutation query) → void -
Called when a mutation is created in the cache
override
-
onMutationError(
Mutation mutation, StackTrace stackTrace) → void -
Called if a mutation error happens.
override
-
onMutationReuse(
Mutation query) → void -
Called when a mutation is found in the cache and re-used
override
-
onQueryCreation(
QueryBase query) → void -
Called when an infinite query or query are created in the cache
override
-
onQueryDeletion(
Object? key) → void -
Called when an infinite query or query are deleted from the cache
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited