hexString property
String
get
hexString
Returns hex string for current ObjectId.
Implementation
String get hexString {
if (_hexString == null) {
final buffer = StringBuffer();
for (var i = 0; i < _bytes.length; i++) {
buffer.write(_bytes[i].toRadixString(16).padLeft(2, '0'));
}
_hexString = buffer.toString();
}
return _hexString!;
}