allowWithResult

open fun allowWithResult(result: T)

Allows this event to occur, and sets the result to the given result.

This is a shortcut for calling allow and setting the EventWithResult.result manually.

Parameters

result

the result to set