MCPcopy Create free account
hub / github.com/Bbalduzz/fletmint / did_mount

Method did_mount

fletmint/toggle_switch.py:71–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69 )
70
71 def did_mount(self):
72 self.colors = (
73 ToggleSwitchColors.dark()
74 if self.page.theme_mode == ft.ThemeMode.DARK
75 else ToggleSwitchColors.light()
76 )
77 self.update()
78
79 def get_container(self, icon, active):
80 """Helper function to create individual toggle containers."""

Callers

nothing calls this directly

Calls 2

darkMethod · 0.45
lightMethod · 0.45

Tested by

no test coverage detected