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
hashCode int
The hash code for this object.
no setterinherited
property ManagedPropertyDescription?
The property being validated.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state → dynamic
final

Methods

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

Operators

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

Static Methods

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