isInt property

bool get isInt

Determines whether a given string consists only of integers. No doubles are included.

Implementation

bool get isInt => _hasMatch(this, r'^\d+$');