isAllNumber property

bool isAllNumber

是否是自然数

Implementation

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