validateFixedHexByteslength static method
Implementation
static List<int> validateFixedHexByteslength({
required String hexBytes,
required int length,
}) {
try {
return validateFixedLengthBytes(
bytes: BytesUtils.fromHexString(hexBytes),
length: length,
);
} on ADAPluginException {
rethrow;
} catch (e) {
throw ADAPluginException(
'Invalid hex bytes.',
details: {'value': hexBytes},
);
}
}