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

Support for record types #1263

Open
alexobviously opened this issue Dec 16, 2023 · 0 comments
Open

Support for record types #1263

alexobviously opened this issue Dec 16, 2023 · 0 comments

Comments

@alexobviously
Copy link

Since Dart 3 we have had records. They're great and I use them extensively. I just ran into a problem though - Hive doesn't seem to support them yet, and whenever trying to save objects that include them, you get an error like this:

HiveError (HiveError: Cannot write, unknown type: (int, int). Did you forget to register an adapter?)

It's also not possible to generate type adapters like this:

@HiveType(typeId: 3)
typedef IntVec = (int, int);

(although this solution would not be great anyway)

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

No branches or pull requests

1 participant