isar / isar/hive

Writing null values in TypeAdapters

Open
#183 1 comment 1 reaction 0 assignees View on GitHub
question
Dominant language
Dart
Stars
4.4k
Forks
449
PR merge metrics
No merged PRs in 30d

Description

What happen if I write a property that returns null (may not) in a TypeAdater write method?
I ask this because I do that, without any check, some of my Account class may be null sometimes, and when I want to read in the read method, it throws a RangeError "Not enough bytes to read" or something like that. It's related with writing null properties?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.