showDialog method

Future<void> showDialog(
  1. BuildContext context
)

Displays a dialog.

By default, it calls PlatformDialog.show displaying localizedTitle and localizedMessage. This can be customized by ErrorEnvironment.errorDefaultShowDialog.

Implementation

Future<void> showDialog(BuildContext context) =>
    _environment?.errorDefaultShowDialog?.call(context, this) ??
    PlatformDialog.show(
      context: context,
      title: localizedTitle,
      message: localizedMessage,
      actions: [PlatformDialogAction(result: () => true, text: 'OK')],
    );