success
Basically It is used when you want to return nothing as value, just return a success
Result.okThis one the argument is required, you always must provide a value to return
Result.successThis one the argument is optional.
When to use It?
Always the returned result value from success method will be null.
If you need to get the returned value use Result.ok
Last updated
Was this helpful?