action method

GameDialog action(
  1. GameDialogButton action
)

Implementation

GameDialog action(GameDialogButton action) => copyWith(
      actions: [...(actions ?? []), action],
    );