webcrypto.dart icon indicating copy to clipboard operation
webcrypto.dart copied to clipboard

Make dartdoc examples self-contained.

Open sigurdm opened this issue 10 months ago • 1 comments

The code in dartdoc examples mixes imports and statement-level code.

Ideally it would contain self-contained code that one could copy and run for one-self. And that we could extract programmatically and format, analyze etc.

sigurdm avatar May 02 '24 11:05 sigurdm

Yeah, adding Future<void> main() async { around the actual statement-level code won't hurt readability.

jonasfj avatar May 06 '24 07:05 jonasfj