convertToIOSDialogAction method

Widget convertToIOSDialogAction({
  1. required ActionCallback<T> onPressed,
})

Implementation

Widget convertToIOSDialogAction({
  required ActionCallback<T> onPressed,
}) {
  return CupertinoDialogAction(
    isDefaultAction: isDefaultAction,
    isDestructiveAction: isDestructiveAction,
    textStyle: textStyle,
    onPressed: () => onPressed(key),
    child: Text(label),
  );
}