insert method

void insert(
  1. int index,
  2. DeviceRecord element
)

The inserted element is moved into the list and must not be used again Although you can use the "elementAt" method to get a reference to the added element

Implementation

void insert(int index, DeviceRecord element) {
  _api._ffiListDeviceRecordInsert(
      _box.borrow(), index, element._box.borrow());
  element._box.move();
}