Function ListWidget.ownAdapter

set adapter, which will be owned by list (destroy will be called for adapter on widget destroy)

ListWidget ownAdapter(
  ListAdapter adapter
) @property;