asBytes property

List<int> get asBytes

Implementation

List<int> get asBytes {
  BytesUtils.areBytesValid(
    this,
    onValidationFailed:
        () =>
            throw ArgumentException.invalidOperationArguments(
              "asBytes",
              reason: "Invalid bytes.",
            ),
  );
  return this;
}