isInt property

bool get isInt

True if the entire string is a valid int.

Implementation

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