The widgets themselves are still declarative. The...
# compose
j
The widgets themselves are still declarative. They open/close functions are not modifying a drawer widget. The widget is still a functional transform of its inputs. Updates to the data model (
drawerState
, in this case) are imperative, but that's completely normal in Compose. All the code in an event handler is imperative, and that's where you perform your state updates. The open/close functions just provide a convenient way for you to update your data model.