MCPcopy
hub / github.com/flet-dev/flet / move_list

Method move_list

sdk/python/examples/apps/declarative/trolli/models.py:78–82  ·  view source on GitHub ↗
(self, src: BoardList, dst: BoardList)

Source from the content-addressed store, hash-verified

76 self.lists.remove(board_list)
77
78 def move_list(self, src: BoardList, dst: BoardList) -> None:
79 src_index = self.lists.index(src)
80 dst_index = self.lists.index(dst)
81 if src_index != dst_index:
82 self.lists.insert(dst_index, self.lists.pop(src_index))
83
84
85@ft.observable

Callers

nothing calls this directly

Calls 3

indexMethod · 0.80
insertMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected