accept static method

DialogAction accept({
  1. required String title,
  2. dynamic action()?,
  3. bool close = true,
})

确认按钮 >>>

Implementation

static DialogAction accept(
    {required String title, Function()? action, bool close = true}) {
  return DialogAction(
    title: title,
    color: Colors.green,
    action: action,
    close: close,
  );
}