nullable property

Decoder<A?> nullable

Implementation

Decoder<A?> get nullable => optional.map((opt) => opt.fold(() => null, id));