showErrorDialog method

Future<void> showErrorDialog(
  1. dynamic exception
)

Implementation

Future<void> showErrorDialog(dynamic exception) => showDialog<void>(
  context: this,
  builder: (ctx) => AlertDialog(
    title: const Text('Error'),
    content: Text(exception.toString()),
    actions: [
      TextButton(
        onPressed: () => Navigator.pop(ctx),
        child: const Text('OK'),
      )
    ],
  ),
);