Checks the value for an integer, then checks for one. If the value is not an integer, null is returned,
value
bool? checkBoolUtil(Object? value) { if (value is! int) { return null; } return value == 1; }