isZero method

bool isZero(
  1. String text
)

Implementation

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