You want to use a view within a method, not within...
# anko
m
You want to use a view within a method, not within a class, right?
Copy code
var enableCheckBox: CheckBox? = null

... {
    enableCheckBox = checkBox { ... }
}

enableCheckBox!!....
a
miha-x64: thank you! This helped! 😁