Write a code that declares the Car class as a Koin component:
class Car(val maxSpeed: Int)
Note, that there is a non-component argument in the constructor:
factory<Car> { params -> /* your code here */ }Write a code that declares the Car class as a Koin component:
class Car(val maxSpeed: Int)
Note, that there is a non-component argument in the constructor:
factory<Car> { params -> /* your code here */ }Create a free account to access the full topic