marcglasberg / fast_immutable_collections

Dart Package: Immutable lists, sets, maps, and multimaps, which are as fast as their native mutable counterparts. Extension methods and comparators for native Dart collections.
BSD 2-Clause "Simplified" License
218 stars 30 forks source link

IMap update throw "Null check operator used on a null value" #69

Closed karabanovbs closed 9 months ago

karabanovbs commented 9 months ago
    IMap<String, int?> nullableMap = <String, int?>{'foo': null}.lock;

    nullableMap = nullableMap.update('foo', (_) => 1); // throw Null check operator used on a null value

    expect(nullableMap.get('foo'), 1);
marcglasberg commented 9 months ago

Published the fix: version 10.1.1.

Thank you!