isInt property

bool isInt

Returns true if the string can be parsed as an integer.

Implementation

bool get isInt => toIntOrNull() != null;