totally mixed null with false. :face_with_rolling_...
# announcements
o
totally mixed null with false. 🙄 alternative would be to create an extension
Copy code
val Boolean?.isTrue: Boolean
        get() = this ?: false
and use
Copy code
if (car?.isElectric.isTrue) {
            //
        }