checkValidStringWithZeroCheckWithBlank function

dynamic checkValidStringWithZeroCheckWithBlank(
  1. String? value
)

Implementation

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

  if (value.isEmpty) {
    return value.trim();
  } else {
    return toDisplayCase(value.trim());
  }
}