toBoolOrNull method
Convert a Tristate flag to bool or null.
Implementation
bool? toBoolOrNull() {
switch (this) {
case Tristate.none:
return null;
case Tristate.isTrue:
return true;
case Tristate.isFalse:
return false;
}
}