Skip to content

docs: move Hash.digestBytes example to a separate file - #365

Open
ting-hong-shieh wants to merge 1 commit into
google:masterfrom
ting-hong-shieh:agent/docs-hash-digest-bytes-example
Open

ting-hong-shieh wants to merge 1 commit into
google:masterfrom
ting-hong-shieh:agent/docs-hash-digest-bytes-example

Conversation

@ting-hong-shieh

Copy link
Copy Markdown

Summary

  • move the existing Hash.digestBytes example to example/webcrypto/hash/digest_bytes.dart
  • reference the extracted example from the API documentation with {@example /example/webcrypto/hash/digest_bytes.dart#example}
  • keep the example behavior unchanged; add only the license header, region markers, and the avoid_print suppression required after extraction

This makes the example visible to formatting and analysis tools as requested in #283.

Validation

  • dart format --output=none --set-exit-if-changed . — 122 files checked, 0 changed
  • dart analyze — no issues found
  • dart compile js example/webcrypto/hash/digest_bytes.dart -o /tmp/digest_bytes.js — succeeded

Native execution was not run because the Dart container does not include CMake, which the package's native build hook requires.

Towards #283.

@google-cla

google-cla Bot commented Aug 13, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@ting-hong-shieh
ting-hong-shieh force-pushed the agent/docs-hash-digest-bytes-example branch from 72b5101 to 9b4f4c8 Compare August 13, 2026 02:26
@ting-hong-shieh
ting-hong-shieh marked this pull request as ready for review August 13, 2026 02:29

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants