isNumeric method

bool isNumeric()

Returns true if the string contains only numeric characters.

Implementation

bool isNumeric() => RegExp(r'^\d+$').hasMatch(this);