buildActions method

List<Widget> buildActions(
  1. BuildContext context
)

Builds the dialog actions.

Implementation

List<Widget> buildActions(BuildContext context) {
  PadlockHint? hint = widget.padlock.hintBuilder?.call(widget.escapeGame, widget.padlock, tryCount);
  return [
    EscapeGameAlertDialogOkButton(onPressed: tryUnlock),
    const EscapeGameAlertDialogCloseButton(),
    if (hint != null)
      createHintButton(context, hint),
  ];
}