isNumeric property

bool get isNumeric

Returns true if string is a valid number

Implementation

bool get isNumeric =>
    this != null && (num.tryParse(this!) != null || this.numeric() != null);