discontinuedPackage widgets_functions has been discontinued and replaced by flutter_widget_function.

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");
}