create method

  1. @override
Widget create(
  1. Widget title,
  2. Widget content,
  3. List<UIAction> actions
)
override

Implementation

@override
Widget create(
  Widget title,
  Widget content,
  List<UIAction> actions,
) {
  return AlertDialog(
    title: title,
    content: content,
    actions: actions.map(
      (a) {
        return TextButton(
          child: a.child,
          onPressed: a.onPressed as void Function(),
        );
      },
    ).toList(),
  );
}