isNumeric property

bool get isNumeric

检查是否只包含数字

Implementation

bool get isNumeric => RegExp(r'^\d+$').hasMatch(this);