byteSignature method

String? byteSignature({
  1. int maxBytes = 12,
})

Implementation

String? byteSignature({int maxBytes = 12}) {
  final payload = bytes;
  if (payload == null) return null;
  final count = maxBytes <= 0
      ? 0
      : (payload.length < maxBytes ? payload.length : maxBytes);
  return payload
      .take(count)
      .map((byte) => byte.toRadixString(16).padLeft(2, '0'))
      .join(' ');
}