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 CupertinoAlertDialog(
    title: title,
    content: content,
    actions: actions.map<Widget>(
      (a) {
        return CupertinoButton(
          child: a.child,
          onPressed: a.onPressed as void Function(),
        );
      },
    ).toList(),
  );
}