debugString method
Constructs a string for debugging instance
.
Implementation
@override
String debugString(Uint8List instance) {
if (instance.length <= 4) {
return 'hex"${encodeHex(instance)}"';
} else if (instance.length <= 64) {
return 'hex"${encodeHex(instance)}" (L=${instance.length})';
} else {
return 'hex"${encodeHex(instance.sublist(0, 4))}...${encodeHex(instance.sublist(instance.length - 4, instance.length))}" (L=${instance.length})';
}
}