confirm_dialog library

Functions

confirm(BuildContext context, {Widget? title, Widget? content, Widget? textOK, Widget? textCancel, bool canPop = false, void onPopInvoked(bool)?}) Future<bool>
The title argument is used to title of alert dialog. The content argument is used to content of alert dialog. The textOK argument is used to text for 'OK' Button of alert dialog. The textCancel argument is used to text for 'Cancel' Button of alert dialog. The canPop argument is canPop of PopScope. The onPopInvoked argument is onPopInvoked of PopScope.