ManagedValidator class

Validates properties of ManagedObject before an insert or update Query.

Instances of this type are created during ManagedDataModel compilation.

Constructors

ManagedValidator(Validate definition, dynamic state)

Properties

definition Validate
The metadata associated with this instance.
final
property ManagedPropertyDescription
The property being validated.
read / write
state → dynamic
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

validate(ValidationContext context, dynamic value) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Methods

run(ManagedObject object, { Validating event: Validating.insert }) ValidationContext
Executes all Validates for object. [...]