Property class abstract

Describes a property of an Entity.

Please see Kind for an example on how to use them.

Implementers

Constructors

Property({String? propertyName, bool required = false, bool indexed = true})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
indexed bool
Specifies whether this property should be indexed or not.
final
propertyName String?
The name of the property.
final
required bool
Specifies whether this property is required or not.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decodePrimitiveValue(ModelDB db, Object? value) Object?
encodeValue(ModelDB db, Object? value, {bool forComparison = false}) Object?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validate(ModelDB db, Object? value) bool

Operators

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