isAllNumber property

bool get isAllNumber

是否是自然数

Implementation

bool get isAllNumber => hasMatch(r'^(\-|\+)?\d+(\.\d+)?$');