cleanCurrentSelection property

bool cleanCurrentSelection
final

cleanCurrentSelection When set to true, the current selection will be cleared immediately. The check verifies if the current list is empty, so after the selection is cleared, it won't be executed again until there are items in the selection list. It's recommended not to have a constant true condition for clearing. Instead, you could validate if the list is null or if a process returns a specific result, thus preventing unnecessary clearing. Keeping this value constantly true will cause the selection to always be cleared immediately.

Implementation

final bool cleanCurrentSelection;