constantNull property

Bloom<Null> constantNull
final

A canonical, immutable static leaf node permanently holding a null payload.

Because Null is a subtype of T? for any type T and Bloom is covariant, this singleton can be used as a zero-allocation default or fallback for any nullable reactive state Bloom<T?> without casting.

Examples

final Bloom<String?> fallback = config?.nameBloom ?? Bloom.constantNull;

Implementation

static final Bloom<Null> constantNull = _ConstantBloom<Null>(null);