DispatchSettings class

Controls the behaviour of dispatching actions to Matomo.

Constructors

DispatchSettings.nonPersistent({Duration dequeueInterval = defaultDequeueInterval})
Uses a non persistent dispatch queue.
const
DispatchSettings.persistent({Duration dequeueInterval = defaultDequeueInterval, PersistenceFilter onLoad = whereNotOlderThanADay})
Uses a persistent dispatch queue.
const

Properties

dequeueInterval Duration
How often to dispatch actions to the Matomo backend.
final
hashCode int
The hash code for this object.
no setterinherited
onLoad PersistenceFilter?
Used to determine which of the stored actions are still valid.
final
persistentQueue bool
Wheter to store actions persistently before dispatching.
final
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 Methods

chain(Iterable<PersistenceFilter> filters) PersistenceFilter
Combines multiple PersistenceFilters.
whereNotOlderThan(Duration duration) PersistenceFilter
Only takes actions that are not older than duration.
whereUserId(String uid) PersistenceFilter
Only takes actions where the userId is uid.

Constants

defaultDequeueInterval → const Duration
The default duration between dispatching actions to the Matomo backend.
dropAll → const PersistenceFilter
Drops all actions.
takeAll → const PersistenceFilter
Takes all actions.
whereNotOlderThanADay → const PersistenceFilter
Shorthand for whereNotOlderThan with a duration of a day.