remove method

Task remove(
  1. int index
)

Moves the element out of this list and returns it

Implementation

Task remove(int index) {
  final address = _api._ffiListTaskRemove(_box.borrow(), index);
  final reference =
      _Box(_api, ffi.Pointer.fromAddress(address), "drop_box_Task");
  reference._finalizer = _api._registerFinalizer(reference);
  return Task._(_api, reference);
}