<itemvalue="Calling [destroy] will make the send a close event on the stream and will no longer react on data being piped to it."/>
<itemvalue="Call [close] (inherited from [IOSink]) to only close the [Socket] for sending data."/>
<itemvalue="Destroys the socket in both directions. Calling [destroy] will make the send a close event on the stream and will no longer react on data being piped to it. Call [close] (inherited from [IOSink]) to only close the [Socket] for sending data."/>
<itemvalue="If the current action is not removing an element, update [_selectedElements] with [defaultData]. Otherwise, keep the previous value of [_selectedElements], preventing it from being updated by [defaultData]. Note: [didUpdateWidget] is called whenever the widget is updated, so it's important to control when [_selectedElements] should be updated. This is also executed if and only if we do not have any elements selected, because in this way we will only have an update if an element is selected after the widget is built. Recommendation: Over time this entire implementation should be migrated to [ValueNotifier], with a singleton abstraction."/>
<itemvalue="If the current action is not removing an element, update [_selectedElements] with [defaultData]. Otherwise, keep the previous value of [_selectedElements], preventing it from being updated by [defaultData]. Note: [didUpdateWidget] is called whenever the widget is updated, so it's important to control when [_selectedElements] should be updated. This is also executed if and only if we do not have any elements selected, because in this way we will only have an update if an element is selected after the widget is built. Recommendation: Over time this entire implementation should be migrated to [ValueNotifier], with a singleton abstraction."/>
<itemvalue="A generic class that standardizes elements for consistent manipulation. The `Choice` class provides a standardized way to handle different types of elements within a list, menu, or selection field. Each instance of `Choice` contains a unique key (`key`), a display value (`value`), and optional metadata of any type, making it highly versatile."/>