Retrieving parameters

Report a typo

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 */ }
Enter a short text
___

Create a free account to access the full topic