PersistenceFilter typedef
Used to filter out unwanted actions of the last session if using DispatchSettings.persistent.
Will invoked with the serialized action
and should return true
if the
action is still valid, or false
if the action should be dropped.
Filters can be chained using DispatchSettings.chain.
Some build in filters are DispatchSettings.takeAll, DispatchSettings.dropAll, DispatchSettings.whereUserId, DispatchSettings.whereNotOlderThan and DispatchSettings.whereNotOlderThanADay.
Implementation
typedef PersistenceFilter = bool Function(Map<String, String> action);