ofBool static method Null safety

LDValue ofBool(
  1. bool? value
)

Returns an instance for a bool value.

For each input value, ofBool will always return the same instance.

Implementation

static LDValue ofBool(bool? value) => value == null ? _NULL : (value ? _TRUE : _FALSE);