Ayfri
01/27/2022, 7:18 PMclass User(val name: String = "test") and I have a place where I do this val user = User(nullableString), is there a way to say that if the nullableString is null, use the default value ?Luke
01/27/2022, 7:22 PMnullableString?.let(::User) ?: User()Arilson José de Oliveira Júnior
01/27/2022, 7:36 PMval user = User()Ayfri
01/27/2022, 7:45 PMDave K
01/27/2022, 7:59 PM