isNullOREmptyORZero static method

bool isNullOREmptyORZero(
  1. String? str
)

check string is null or empty or zero

Implementation

static bool isNullOREmptyORZero(String? str) {
  return (str == null || str.trim().isEmpty || str == "0");
}