boolToCheck static method

int? boolToCheck(
  1. bool? boolValue
)

Converts the value of a check (bool) to Frappé representation (0 or 1)

Implementation

static int? boolToCheck(bool? boolValue) {
  if (boolValue == null) {
    return null;
  }
  return boolValue ? 1 : 0;
}