isInt property

bool get isInt

Whether this string is an integer.

Implementation

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