noConnectivityWithRetry static method

ConnectionException noConnectivityWithRetry(
  1. void onRetry()?
)

Usage: throw ConnectionException.noConnectivityWithRetry(() {...});

A dialog will open. When the user presses OK or dismisses the dialog in any way, the onRetry callback will be called.

Implementation

static ConnectionException noConnectivityWithRetry(void Function()? onRetry) =>
    ConnectionException(onRetry: onRetry);