withNullParent

open fun withNullParent(): Lens<P?, T>

For a lens on a non-nullable parent this method creates a lens that can be used on a nullable-parent Use this method only if you made sure, that it is never called on a null parent. Otherwise, a NullPointerException is thrown.