awaitModal abstract method

Future<ModalContext> awaitModal(
  1. String customId,
  2. {Duration? timeout}
)

Wait for a user to submit a modal and return a context representing that submission.

customId is the id of the modal to wait for.

If timeout is set, this method will complete with an error after timeout has passed.

You might also be interested in:

Implementation

Future<ModalContext> awaitModal(String customId, {Duration? timeout});