getString method
Reads a string field, or null when absent. Decodes UTF-8 on every call.
Implementation
String? getString(int fieldId) {
final cursor = this.cursor();
while (cursor.next()) {
if (cursor.fieldId != fieldId) continue;
_requireWire(cursor, fieldId, VxsWire.lengthDelimited);
return utf8.decode(_slice(cursor.valueOffset, cursor.valueLength));
}
return null;
}