Not-null variables¶
NotNUllVar¶
NotNUllVar allows you to create non-null variables.
private var age by NotNUllVar<Int>()
Once set¶
if true, the variable will only set by once, false otherwise.
NotNullOrDefault¶
Getting a non-null variable. If no other value is set, the defaultValue will be used as the value of the variable and no changes are allowed.
private var fileMaxSize by NotNullOrDefault(1024L)