Discussion about this post

User's avatar
Randal L. Schwartz's avatar

"The result is identical". Not exactly. A Dart Data class creates an entirely unique type. Records are only managed by their apparent types. So a record (int foo, String bar) is absolutely equivalent and assignable to a (int x, String y).

1 more comment...

No posts

Ready for more?