Optional
// This is an optional parameter
@Parameters(index = "0", arity = "0..1", description = ["The optional lookup query"])
var query2: String? = null
Notes
- The arity attribute specifies the number of arguments that the parameter can take. For an optional parameter, you can set arity = "0..1", which means the parameter can take either 0 or 1 argument.
Backlinks