The code A comes from the project.
1: What is the typealias
in Android Studio project?
2: Is the typealias
keyword of Kotlin?
3: Is there a equivalent code as same as typealias OnExploreItemClicked = (ExploreModel) -> Unit
?
4: Why is the code typealias OnExploreItemClicked = {(ExploreModel) -> Unit }
wrong?
Code A
typealias OnExploreItemClicked = (ExploreModel) -> Unit
@Composable
fun CraneHome(
onExploreItemClicked: OnExploreItemClicked,
modifier: Modifier = Modifier,
) {
...
}
from What is the typealias in Android Studio project?
No comments:
Post a Comment