You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
typedefIntVec= (int, int);
(although this solution would not be great anyway)
The text was updated successfully, but these errors were encountered:
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:
(although this solution would not be great anyway)
The text was updated successfully, but these errors were encountered: