IndexConfig constructor

IndexConfig({
  1. String? langDict,
  2. String? langIndex,
  3. List<int>? hashIndex,
  4. List<int>? wordsFlag,
  5. CollationGraph? collation,
  6. Iterable<IndexConfig_IndexInfo>? allIndexes,
})

Implementation

factory IndexConfig({
  $core.String? langDict,
  $core.String? langIndex,
  $core.List<$core.int>? hashIndex,
  $core.List<$core.int>? wordsFlag,
  CollationGraph? collation,
  $core.Iterable<IndexConfig_IndexInfo>? allIndexes,
}) {
  final _result = create();
  if (langDict != null) {
    _result.langDict = langDict;
  }
  if (langIndex != null) {
    _result.langIndex = langIndex;
  }
  if (hashIndex != null) {
    _result.hashIndex = hashIndex;
  }
  if (wordsFlag != null) {
    _result.wordsFlag = wordsFlag;
  }
  if (collation != null) {
    _result.collation = collation;
  }
  if (allIndexes != null) {
    _result.allIndexes.addAll(allIndexes);
  }
  return _result;
}