isEmpty function

bool isEmpty(
  1. dynamic value
)

Implementation

bool isEmpty(dynamic value) {
  return value == null ||
      value == '' ||
      value == null ||
      (value is List && value.isEmpty) ||
      (value is num && isNaN(value));
}