dart-lang / site-www

Source for Dart website
https://dart.dev
Other
936 stars 675 forks source link

Update patterns.md with destructuring of record with named fields #5875

Closed orestesgaolin closed 3 weeks ago

orestesgaolin commented 1 month ago

I think it may be useful to provide one more example of destructuring record with named fields as it's not present on this page. Got inspiration from this issue https://github.com/dart-lang/site-www/issues/5262


Contribution guidelines:
- See our [contributor guide](https://github.com/dart-lang/site-www/blob/main/CONTRIBUTING.md) for general expectations for PRs. - Larger or significant changes should be discussed in an issue before creating a PR. - Code changes should generally follow the [Dart style guide](https://dart.dev/effective-dart) and use `dart format`. - Updates to [code excerpts](https://github.com/dart-lang/site-shared/blob/main/doc/code-excerpts.md) indicated by `
MaryaBelanger commented 3 weeks ago

/gcbrun

dart-github-bot commented 3 weeks ago

Visit the preview URL for this PR (updated for commit db32b8a00dd5016f68a966c30704118df5565859):

https://dart-dev--pr5875-patch-destructuring-1f4doi1z.web.app