toString method

  1. @override
String toString()
override

Returns a string representation of this Cas.

This representation can be parsed by Cas.parse.

Implementation

@override
String toString() {
  // Return a hex string representation of the CAS.
  final higher = _value >>> 32;
  final lower = _value & 0xFFFFFFFF;
  final hexDigits = '${higher.toRadixString(16).padLeft(8, '0')}'
      '${lower.toRadixString(16).padLeft(8, '0')}';
  return '0x$hexDigits';
}