nickk
08/14/2018, 12:28 PMPavlo Liapota
08/14/2018, 12:35 PMval isReadOnly get() = observation != null && observation!!.submitted
Pavlo Liapota
08/14/2018, 12:42 PMobservation?.submitted == true
or
observation?.submitted ?: false
if you like 🙂nickk
08/14/2018, 12:54 PMgildor
08/14/2018, 1:35 PM== true
is recommended by official style guide