bool isZero(String text) { var numeriString = toNumericString( text, allowPeriod: true, ); var value = double.tryParse(numeriString) ?? 0.0; return value == 0.0; }