hasOnlyNumbers property

bool hasOnlyNumbers

Returns a String with only numbers.

Implementation

bool get hasOnlyNumbers => (onlyNumbers.isNotEmpty) && onlyNumbers.equals(this);