Returns true if the numeric value of str is exactly zero.
true
str
bool isZero(String str) { final val = double.tryParse(str); return val != null && val == 0; }