是否为正
static bool isPositive(String? num) { if (num == null || num.isEmpty) return true; return double.parse(num) >= 0; }