validateFixedHexByteslength static method

List<int> validateFixedHexByteslength({
  1. required String hexBytes,
  2. required int length,
})

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},
    );
  }
}