stringValue property

String? stringValue

Returns String value or null otherwise.

This method performers a utf8 decoding, as FlexBuffers format stores strings in utf8 encoding.

Implementation

String? get stringValue {
  if (_valueType == ValueType.String || _valueType == ValueType.Key) {
    return utf8.decode(_buffer.buffer.asUint8List(_indirect, length));
  }
  return null;
}