ListProperty class
A composed list Property, with a subProperty
for the list elements.
It will validate that values are List objects before writing them to the datastore and when reading them back. It will also validate the elements of the list itself.
- Inheritance
- Implementers
Constructors
- ListProperty(PrimitiveProperty subProperty, {String? propertyName, 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.
finalinherited
- propertyName → String?
-
The name of the property.
finalinherited
- required → bool
-
Specifies whether this property is required or not.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subProperty → PrimitiveProperty
-
final
Methods
-
decodePrimitiveValue(
ModelDB db, Object? value) → Object -
override
-
encodeValue(
ModelDB db, Object? value, {bool forComparison = false}) → Object? -
override
-
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 -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited