Skip to content

Commit bac707d

Browse files
docs: add KDoc and license header to ItemPosition
1 parent e1c7af4 commit bac707d

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

  • reorderable/src/commonMain/kotlin/org/burnoutcrew/reorderable
Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
/*
2+
* Copyright 2022 André Claßen
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package org.burnoutcrew.reorderable
217

3-
data class ItemPosition(val index: Int, val key: Any?)
18+
/**
19+
* Represents the position of an item within a reorderable list or grid.
20+
*
21+
* @param index The zero-based index of the item in the list or grid.
22+
* @param key The stable key of the item, or null when using index-only lists.
23+
*/
24+
data class ItemPosition(val index: Int, val key: Any?)

0 commit comments

Comments
 (0)