EntityValidatorFactory class abstract

Cache-control EntityValidator factory for operations

Constructors

EntityValidatorFactory.lifespan(int cacheTtl, [Clock clock = Clock.system])
Creates Lifespan factory cacheTtl Cache TTL clock System clock
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create([String? serialized]) EntityValidator
Creates entity cache-control serialized - serialized validator string. Creates a new validator if null is passed Throws Exception if serialized can't be deserialized
createSnapshot([String? serialized]) EntityValidator
Creates a snapshot of entity cache-control.The EntityValidator.isValid evaluated at the time of creation. serialized - serialized validator string. Creates a valid snapshot if null is passed Throws Exception if serialized can't be deserialized
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