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

Record type misleading issue #6426

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

MiniPiku
Copy link

Key Changes:

  1. Added typedef Explanation:

    • Added a section explaining how to use typedef to name record types.
    • Provided an example of defining and using a UserProfile record type.
  2. Improved Readability:

    • Clarified that typedef can be used to improve code readability and reusability.

1. Renamed the variable json to data throughout the section.
2. Updated the text to clarify that the example works with deserialized data (e.g., parsed from JSON) rather than raw JSON strings.
3. Ensured consistency in variable naming and explanations.

This update makes the documentation more accurate and avoids misleading readers into thinking that the variable holds a JSON string. If you’re contributing to the Dart documentation, you can submit this change as a pull request to the [site-www repository](https://github.com/dart-lang/site-www)
1. **Added 	ypedef Explanation:**
   - Added a section explaining how to use 	ypedef to name record types.
   - Provided an example of defining and using a UserProfile record type.

2. **Improved Readability:**
   - Clarified that 	ypedef can be used to improve code readability and reusability.
@MiniPiku
Copy link
Author

@parlough can you review this PR please
thank you :)

@parlough parlough self-requested a review February 20, 2025 02:54
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