isNullOrEmpty static method

bool isNullOrEmpty(
  1. String? value, {
  2. int minLenght = 2,
})

Implementation

static bool isNullOrEmpty(String? value, {int minLenght = 2}) {
  if (value == null || value.isEmpty) {
    return true;
  }
  return value.length < minLenght;
}