areBytesValid static method
Implementation
static bool areBytesValid(
Iterable<int> bytes, {
Object Function()? onValidationFailed,
}) {
final bool isBytes = BytesUtils.isBytes(bytes);
if (!isBytes && onValidationFailed != null) {
throw onValidationFailed();
}
return isBytes;
}