Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(docs): Add documentation for using records and typedef #6382

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Asncodes-80
Copy link

@Asncodes-80 Asncodes-80 commented Feb 2, 2025

This commit introduces a new section in the documentation showcasing the combination of Dart's record types and typedef to create a simple, reusable data structure for dynamic UI rendering.

This approach was originally shared as an answer on Stack Overflow in Spring 2023 to the question: "Is there anything like a struct in Dart?" (https://stackoverflow.com/a/76391196/12158825). The solution received highly positive feedback via emails and comments, highlighting its usefulness for developers.

This feature is now documented as a recommended approach for developers aiming to write cleaner and more maintainable Dart code that wasn't mentioned before.

  • I’ve reviewed the contributor guide and applied the relevant portions to this PR.
  • This PR doesn't contain automatically generated corrections or text (Grammarly, LLMs, and similar).
  • This PR follows the Google Developer Documentation Style Guidelines — for example, it doesn't use i.e. or e.g., and it avoids I and we (first person).
  • This PR uses semantic line breaks of 80 characters or fewer.
    Waiting for the further feedback.

Thank you!

This commit introduces a new section in the documentation showcasing the
combination of Dart's record types and `typedef` to create simple,
reusable data structure for dynamic UI rendering.

This approach was originally shared as an answer on Stack Overflow in
Spring 2023 to the question: "Is there anything like a struct in Dart?"
(https://stackoverflow.com/a/76391196/12158825). The solution received
highly positive feedback via emails and comments, highlighting its
usefulness for developers.

This feature is now documented as a recommended approach for developers
aiming to write cleaner and more maintainable Dart code that wasn't
mentioned before.
Copy link

google-cla bot commented Feb 2, 2025

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.

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.

1 participant