isInt property

bool get isInt

check value is integer or not and return true or false

Implementation

bool get isInt => isEmptyOrNull ? false : int.tryParse(this!) != null;