checkBoolUtil function

bool? checkBoolUtil(
  1. Object? value
)

Checks the value for an integer, then checks for one. If the value is not an integer, null is returned,

Implementation

bool? checkBoolUtil(Object? value) {
  if (value is! int) {
    return null;
  }

  return value == 1;
}