Checks if the String is an integer.
integer
Example:
print("123".isInt()); // true print("abc".isInt()); // false
bool isInt() => isEmptyOrNull ? false : int.tryParse(this!) != null;