isEmpty static method

bool isEmpty(
  1. Object? value
)

isEmpty.

Implementation

static bool isEmpty( Object? value) {
  if (value == null) return true;
  if (value is String && value.isEmpty) {
    return true;
  }
  return false;
}