ManagedValidator class Null safety

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.
read-onlyinherited
property ManagedPropertyDescription?
The property being validated.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
state → dynamic
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.