Field class

Implementers

Constructors

Field(String name, {Type? type, bool isMultivalued = false, int dimensions = 0, bool isOptional = false, bool isFacetable = false, bool shouldIndex = true, String? locale, bool sort = false, bool enableInfixSearch = false, String? reference})
Field.fromMap(Map<String, dynamic> map)
factory

Properties

dimensions int
Used in case of a vector field. Represents the number of dimensions (length of the float array) that your embeddings contain.
final
enableInfixSearch bool
Enable infix search on a string field.
final
hashCode int
The hash code for this object.
no setteroverride
isFacetable bool
If this field will be used in faceted search.
final
isMultivalued bool
If this field is an array containing multiple values.
final
isOptional bool
If this field can be ommited in a document.
final
locale String?
final
name String
name of the field.
final
reference String?
Connects a document to a field in another collection.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldIndex bool
Declaring a field as non-indexable
final
sort bool
Enable sorting on a string field.
final
type Type?
Type of field.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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