showErrorDialog function Null safety

Future<void> showErrorDialog(
  1. BuildContext context,
  2. String message,
  3. Object? exception
)

Implementation

Future<void> showErrorDialog(
        BuildContext context, String message, Object? exception) =>
    showDialog(
        context: context,
        builder: (BuildContext context) => ErrorDialog(message, exception));