buildActions method

  1. @override
List<Widget> buildActions(
  1. BuildContext context,
  2. List<DialogChoice<T>> selectedChoices
)
override

Implementation

@override
List<Widget> buildActions(
    BuildContext context, List<DialogChoice<T>> selectedChoices) {
  return [
    TextButton(
        onPressed: () => cancelDialog(context), child: actions[0].title)
  ];
}