isEmpty method

bool isEmpty ()

Returns true if no objects are in this box.

Implementation

bool isEmpty() {
  final isEmpty = allocate<Uint8>();
  try {
    checkObx(bindings.obx_box_is_empty(_cBox, isEmpty));
    return isEmpty.value > 0 ? true : false;
  } finally {
    free(isEmpty);
  }
}