v0.6.0-nullsafety.2
-
Breaking
asList*()methods now ignorenullvalues. The map function now receives aRequiredPickas fist parameter instead of aPickmaking parsing easier.Therefore
pick().required().asList((RequiredPick pick) => /*...*/)only maps non-nullable values. When your lists containnullit will be ignored.
This is fine in most cases and simplifies the map function.In rare cases, where your lists contain
nullvalues with meaning, use the second parameterwhenNullto map those null values.asList((pick) => Person.fromPick(pick), whenNull: (Pick it) => null). The function still receives aPickwhich gives access to thecontextapi or thePickLocation. But thePicknever holds any value. -
Breaking Don't parse doubles as int because the is no rounding method which satisfies all #31
-
Breaking Allow parsing of "german" doubles with
,as decimal separator #30 -
Improve error messages with more details where parsing stopped
-
New
RequiredPick.nullable()converting aRequiredPickback to aPickwith potentialnullvalue -
New
PickLocation.followablePath. WhilePickLocation.pathcontains the full path to the value,followablePathcontains only the part which could be followed with a non-nullable value