Checking the argument

Report a typo

The constructor of this class has an assertion that throws an error if the argument is blank.

class Animal(val name: String) {
    init {
        check(_________________) { "Name must not be blank" }
    }
}

Fill in the missing part of code.

Enter a short text
___

Create a free account to access the full topic