ReactiveNullable<T> constructor
ReactiveNullable<T> ({})
Creates a reactive widget that responds to nullability of a value.
If value is not null, builder is called with the value.
If value is null, ifNull is rendered instead.
If reactiveKey is not provided, it defaults to ReactivityTypeEnum.reactive.
Implementation
ReactiveNullable({
super.key,
this.value,
this.ifNull = const Nothing(),
required this.builder,
Key? reactiveKey,
}) : reactiveKey = reactiveKey ?? ValueKey(ReactivityTypeEnum.reactive);