IndexSpec constructor

IndexSpec({
  1. String? indexName,
  2. IndexFieldSpec? indexFieldSpec,
  3. IndexFilter? indexFilter,
})

Implementation

factory IndexSpec({
  $core.String? indexName,
  IndexFieldSpec? indexFieldSpec,
  IndexFilter? indexFilter,
}) {
  final _result = create();
  if (indexName != null) {
    _result.indexName = indexName;
  }
  if (indexFieldSpec != null) {
    _result.indexFieldSpec = indexFieldSpec;
  }
  if (indexFilter != null) {
    _result.indexFilter = indexFilter;
  }
  return _result;
}