SourceAttribute class
Identifies the source data for an index field. An optional data transformation can be applied to the source data when populating the index field. By default, the value of the source attribute is copied to the index field.
Constructors
- SourceAttribute({required SourceDataFunction sourceDataFunction, SourceData? sourceDataCopy, SourceDataMap? sourceDataMap, SourceDataTrimTitle? sourceDataTrimTitle})
- SourceAttribute.fromXml(XmlElement elem)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceDataCopy → SourceData?
-
Copies data from a source document attribute to an
IndexField
.final - sourceDataFunction → SourceDataFunction
-
Identifies the transformation to apply when copying data from a source
attribute.
final
- sourceDataMap → SourceDataMap?
-
Maps source document attribute values to new values when populating the
IndexField
.final - sourceDataTrimTitle → SourceDataTrimTitle?
-
Trims common title words from a source document attribute when populating an
IndexField
. This can be used to create anIndexField
you can use for sorting.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited