IndexOptions constructor

IndexOptions({
  1. BoolValue? background,
  2. Int32Value? expireAfterSeconds,
  3. StringValue? name,
  4. BoolValue? sparse,
  5. List<int>? storageEngine,
  6. BoolValue? unique,
  7. Int32Value? version,
  8. StringValue? defaultLanguage,
  9. StringValue? languageOverride,
  10. Int32Value? textVersion,
  11. List<int>? weights,
  12. Int32Value? sphereVersion,
  13. Int32Value? bits,
  14. DoubleValue? max,
  15. DoubleValue? min,
  16. Int32Value? bucketSize,
  17. List<int>? partialFilterExpression,
  18. List<int>? collation,
  19. List<int>? wildcardProjection,
  20. BoolValue? hidden,
})

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;
}