DismissModalBottomSheet
fun EventSchemaBuilderScope.DismissModalBottomSheet(id: String = randomId(), trigger: EventTrigger, events: EventSchemaBuilderScope.() -> Unit = {}, modalBottomSheetId: String)
Closes the modal bottom sheet registered under modalBottomSheetId. Does not consume incomingData. Dispatches onSuccess (no data) when the sheet was dismissed; onFailure (carrying the thrown exception) when no modal bottom sheet is showing under modalBottomSheetId.
Parameters
id
Unique identifier of this event. Defaults to a random id.
trigger
Trigger that fires this event, built via EventTriggers.
events
Child events chained after this one, wired to its triggers (onSuccess, onFailure).
modalBottomSheetId
Id of the DisplayModalBottomSheet sheet to close.