convertToMacOSDialogAction method

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

Implementation

Widget convertToMacOSDialogAction({
  required ActionCallback<T> onPressed,
}) {
  return PushButton(
    controlSize: ControlSize.large,
    secondary: isDestructiveAction || !isDefaultAction,
    onPressed: () => onPressed(key),
    child: Text(
      label,
      style: isDestructiveAction
          ? const TextStyle(
              color: CupertinoColors.destructiveRed,
            )
          : null,
    ),
  );
}