Join Slack
Powered by
<How to detect if a function parameter value was e...
# forum
r
rss
12/06/2023, 9:49 AM
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?...
Open in Slack
Previous
Next