Skip to content

Commit

Permalink
Modified the old text and added crosslink
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniPiku committed Mar 7, 2025
1 parent 377893e commit cd0bca8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/content/language/records.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ check out the page on [Patterns][pattern].

## Record types

Records are structurally typed based on the types of their fields.
A record's shape (the set of its fields,
the fields' types, and their names, if any) uniquely determines the type of a record.
While you cannot declare a unique type for a specific record shape,
you can use `typedef` to give a name to a record type for better readability and reusability..
Records in Dart are structurally typed based on their fields' types, names, and count.
While you can't declare a unique type for a record shape, you can use `typedef` for readability and reuse.
Learn more in the [Records and typedefs](https://dart.dev/language/records#records-and-typedefs)
section of the Dart language documentation.


For example, you can define a named record type for a user profile:

Expand Down

0 comments on commit cd0bca8

Please sign in to comment.