isNumeric property
bool
get
isNumeric
isNumeric: checks if the string is numeric
Implementation
bool get isNumeric {
if (isNull) return false;
if (this!.isEmpty) return false;
final numeric = RegExp(r'^-?[0-9]+$');
return numeric.hasMatch(this!);
}