Simple class

A simple validator which state is defined on creation May be used to fix the isValid state of dynamic validator such as Lifespan

Inheritance

Constructors

Simple(bool _valid)
A simple validator which state is defined on creation May be used to fix the isValid state of dynamic validator such as Lifespan _valid Validity state
const

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

createSnapshot() EntityValidator
Crates a snapshot of validator preserving it's current EntityValidator.isValid value
inherited
isValid() bool
If true cached entity is valid.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() String
A way to serialize entity
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

deserializer → const _SimpleDeserializer
Validator deserializer