If you want to assert they will always be initiali...
# codereview
d
If you want to assert they will always be initialized, you can use the
lateinit
keyword. A better solution if it’s viable would be initializing them as part of the constructor. ie.
class SettingsPresenter(val settingsForm: settingsForm = SettingsFrom())…
. Finally if you use them a bunch and they might actually be null, you can use smartcasting or
settingsForm?.apply { settingsForm is smartcast to not null in here }
.