showTryAgain static method

void showTryAgain(
  1. BuildContext context, {
  2. required VoidCallback onRetry,
})

Shows a "Try again" snackbar with action

Implementation

static void showTryAgain(
  BuildContext context, {
  required VoidCallback onRetry,
}) {
  SavePointsSnackbar.showError(
    context,
    title: 'Failed',
    subtitle: 'Something went wrong',
    actionLabel: 'Retry',
    onActionPressed: onRetry,
  );
}