Skip to content

Commit d91fa95

Browse files
committed
Adjust README.md
1 parent 5876efe commit d91fa95

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ fun <T> InterElementDividedRow(
156156
@Composable
157157
fun <T> CollectFromFlow(
158158
flow: Flow<T>,
159-
collector: FlowCollector<T>,
160159
key1: Any? = null,
161-
key2: Any? = null
160+
key2: Any? = null,
161+
collector: FlowCollector<T>
162162
)
163163

164164
/**
@@ -167,9 +167,9 @@ fun <T> CollectFromFlow(
167167
@Composable
168168
fun <T> CollectLatestFromFlow(
169169
flow: Flow<T>,
170-
action: suspend (value: T) -> Unit,
171170
key1: Any? = null,
172-
key2: Any? = null
171+
key2: Any? = null,
172+
action: suspend (value: T) -> Unit
173173
)
174174
```
175175

@@ -181,18 +181,18 @@ fun <T> CollectLatestFromFlow(
181181
*/
182182
@Composable
183183
fun OnLifecycleEvent(
184-
callback: () -> Unit,
185184
lifecycleEvent: Lifecycle.Event,
186185
lifecycleOwner: LifecycleOwner = LocalLifecycleOwner.current,
187186
key1: Any? = null,
188-
key2: Any? = null
187+
key2: Any? = null,
188+
callback: () -> Unit
189189
)
190190

191191
/**
192192
* Runs a callback when removed from composition.
193193
*/
194194
@Composable
195-
fun OnRemoveFromComposition(callback: () -> Unit)
195+
fun OnDispose(callback: () -> Unit)
196196
```
197197

198198
## Orientation

0 commit comments

Comments
 (0)