checkValidStringWithZeroCheck function

dynamic checkValidStringWithZeroCheck(
  1. String? value
)

Implementation

checkValidStringWithZeroCheck(String? value) {
  if (value == null || value == "null" || value == "<null>" || value == "0.00") {
    value = "--";
  }
  else if (value.isEmpty) {
    value = "--";
  }

  if (value.isEmpty || value == "--") {
    return value.trim();
  } else {
    return toDisplayCase(value.trim());
  }
}