isEmpty method

bool isEmpty()

Implementation

bool isEmpty() {
  if (this.v == null) return true;
  if (this.string == '') return true;
  if (this.number == 0) return true;
  if (this.map?.keys.length == 0) return true;
  if (this.list?.length == 0) return true;
  if (this.boolean == false) return true;
  return false;
}