IndexOptions constructor
IndexOptions({
- BoolValue? background,
- Int32Value? expireAfterSeconds,
- StringValue? name,
- BoolValue? sparse,
- List<
int> ? storageEngine, - BoolValue? unique,
- Int32Value? version,
- StringValue? defaultLanguage,
- StringValue? languageOverride,
- Int32Value? textVersion,
- List<
int> ? weights, - Int32Value? sphereVersion,
- Int32Value? bits,
- DoubleValue? max,
- DoubleValue? min,
- Int32Value? bucketSize,
- List<
int> ? partialFilterExpression, - List<
int> ? collation, - List<
int> ? wildcardProjection,
Implementation
factory IndexOptions({
$9.BoolValue? background,
$9.Int32Value? expireAfterSeconds,
$9.StringValue? name,
$9.BoolValue? sparse,
$core.List<$core.int>? storageEngine,
$9.BoolValue? unique,
$9.Int32Value? version,
$9.StringValue? defaultLanguage,
$9.StringValue? languageOverride,
$9.Int32Value? textVersion,
$core.List<$core.int>? weights,
$9.Int32Value? sphereVersion,
$9.Int32Value? bits,
$9.DoubleValue? max,
$9.DoubleValue? min,
$9.Int32Value? bucketSize,
$core.List<$core.int>? partialFilterExpression,
$core.List<$core.int>? collation,
$core.List<$core.int>? wildcardProjection,
$9.BoolValue? hidden,
}) {
final _result = create();
if (background != null) {
_result.background = background;
}
if (expireAfterSeconds != null) {
_result.expireAfterSeconds = expireAfterSeconds;
}
if (name != null) {
_result.name = name;
}
if (sparse != null) {
_result.sparse = sparse;
}
if (storageEngine != null) {
_result.storageEngine = storageEngine;
}
if (unique != null) {
_result.unique = unique;
}
if (version != null) {
_result.version = version;
}
if (defaultLanguage != null) {
_result.defaultLanguage = defaultLanguage;
}
if (languageOverride != null) {
_result.languageOverride = languageOverride;
}
if (textVersion != null) {
_result.textVersion = textVersion;
}
if (weights != null) {
_result.weights = weights;
}
if (sphereVersion != null) {
_result.sphereVersion = sphereVersion;
}
if (bits != null) {
_result.bits = bits;
}
if (max != null) {
_result.max = max;
}
if (min != null) {
_result.min = min;
}
if (bucketSize != null) {
_result.bucketSize = bucketSize;
}
if (partialFilterExpression != null) {
_result.partialFilterExpression = partialFilterExpression;
}
if (collation != null) {
_result.collation = collation;
}
if (wildcardProjection != null) {
_result.wildcardProjection = wildcardProjection;
}
if (hidden != null) {
_result.hidden = hidden;
}
return _result;
}