read static method

Implementation

static AutocompleteEntry read(BinaryReader reader) {
  final range = ScriptRange.read(reader);
  final text = reader.readString();
  final matchedIndices = Uint32List(reader.readVarUint());
  for (int i = 0; i < matchedIndices.length; i++) {
    matchedIndices[i] = reader.readVarUint();
  }
  return AutocompleteEntry(
      range: range, text: text, matchedIndices: matchedIndices);
}