DialogAction constructor

DialogAction({
  1. bool close = false,
  2. required String title,
  3. Color? color,
  4. dynamic action()?,
})

创建对话框按钮

title 按钮显示文本(必填) close 点击后是否自动关闭对话框(默认false) color 按钮背景颜色(可选) action 点击回调函数(可选)

Implementation

DialogAction(
    {this.close = false, required this.title, this.color, this.action});