whereNotOlderThan static method

PersistenceFilter whereNotOlderThan(
  1. Duration duration
)

Only takes actions that are not older than duration.

Implementation

static PersistenceFilter whereNotOlderThan(Duration duration) =>
    (Map<String, String> action) => _notOlderThan(
          action,
          DateTime.now(),
          duration,
        );