diff --git a/library/src/main/java/me/gm/selection/SelectionState.kt b/library/src/main/java/me/gm/selection/SelectionState.kt index f2f63fc..b167aad 100644 --- a/library/src/main/java/me/gm/selection/SelectionState.kt +++ b/library/src/main/java/me/gm/selection/SelectionState.kt @@ -129,7 +129,7 @@ abstract class DanglingKeysSupport( ) : SelectionSupport(initialSelection) class KeySelectionState( - initialSelection: Iterable>, + initialSelection: Iterable> = emptyList(), danglingKeys: MutableList = mutableListOf() ) : DanglingKeysSupport(initialSelection, danglingKeys) { @@ -154,7 +154,7 @@ class KeySelectionState( } class IndexSelectionState( - initialSelection: Iterable> + initialSelection: Iterable> = emptyList() ) : SelectionSupport(initialSelection) { companion object {