discontinuedPackage widgets_functions has been discontinued and replaced by flutter_widget_function.

isNullOREmpty static method

bool isNullOREmpty(
  1. String? str
)

check string is null or empty

Implementation

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