canParseToInt static method

bool canParseToInt(
  1. dynamic value
)

Implementation

static bool canParseToInt(dynamic value) {
  if (value is int) return true;
  try {
    int.parse(value);
    return true;
  } catch (e) {
    BasicLogger.errorLog("canParseToInt: $e");
    return false;
  }
}