ribesg
03/27/2019, 11:01 AMvar
without backing field where the getter returns an optional value while the setter requires a non-optional one? Or am I just blocked on using 2 functions?diesieben07
03/27/2019, 11:04 AMFoo?
but setter to only accept Foo
?ribesg
03/27/2019, 11:04 AMdiesieben07
03/27/2019, 11:06 AMCzar
03/27/2019, 11:11 AMlateinit var
or add a requireNotNull
check in the setter. Both seem a bit dirty to me though. See if you can refactor this somehow.ribesg
03/27/2019, 11:26 AM