-
i want to write (e: Exception) -> Unit)? = null as a parameter. how can i do? please help!!!! |
Beta Was this translation helpful? Give feedback.
Answered by
Egorand
Sep 9, 2021
Replies: 1 comment
-
Start with a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
liyihuanx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Start with a
ParameterSpec.builder()
and create aLambdaTypeName
to represent the type. To provide the defaultnull
argument, useParameterSpec.Builder.defaultValue()
. There should be a few similar examples in the unit tests.