BsonDecimal128.fromHexString constructor

BsonDecimal128.fromHexString(
  1. String hexString
)

Implementation

factory BsonDecimal128.fromHexString(String hexString) {
  if (hexString.length != 32) {
    throw ArgumentError(
        'Expected hexadecimal string with length of 32, got $hexString');
  }
  return BsonDecimal128.fromBsonBinary(BsonBinary.fromHexString(hexString));
}