isInt method

bool isInt()

Checks if the string is a valid integer.

Implementation

bool isInt() => int.tryParse(this) != null;