<How to detect if a function parameter value was e...
# forum
r
How to detect if a function parameter value was entered or it is the default value Note: I posted the same question in StackOverflow with no luck Having a function defined as fun foo( bar: String? = null ) { ... } how can be known if bar is null because no value was passed or because null was passed? I.e. the function was called as foo() or foo(bar = null)? Actual case: data class State( val foo: String?...