isInt method

bool isInt()

check value is integer or not and return true or false

Implementation

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