Passing parameters

Report a typo

Write a code that injects the FileStorage class with capacity = 128 as a Koin component:

class FileStorage(val capacity: Int)

Note, that there is a non-component argument in the constructor:

class Cloud: KoinComponent {
    private val storage: FileStorage by inject { /* your code here */ }
}
Enter a short text
___

Create a free account to access the full topic