mvrx-mocking / com.airbnb.mvrx.mocking / DataClassSetDsl / with

with

open fun <PropertyType, DataClass : Any> DataClassSetDsl.Setter<DataClass, PropertyType>.with(block: (PropertyType) -> PropertyType): DataClass

Provide the new value to update your property to. "it" in the lambda is the lambda is the current value, and you should return the new value.