Checks if this String contains only numeric characters.
final numeric = '1234' final nonNumeric = '1234a' numeric.isNumeric -> true; nonNumeric.isNumeric -> false;
bool get isNumeric => RegExp(r'^-?[0-9]+$').hasMatch(this);