isValidInteger static method

bool isValidInteger(
  1. int? n
)

Implementation

static bool isValidInteger(int? n) {
  if( n == null ) return false;
  if( n == 0 ) return false;
  return true;
}