onUserIgnored method

void onUserIgnored(
  1. BuildContext context,
  2. bool shouldPop
)

Implementation

void onUserIgnored(BuildContext context, bool shouldPop) {
  if (debugLogging) {
    print('upgrader: button tapped: ignore');
  }

  // If this callback has been provided, call it.
  var doProcess = true;
  if (onIgnore != null) {
    doProcess = onIgnore!();
  }

  if (doProcess) {
    _saveIgnored();
  }

  if (shouldPop) {
    _pop(context);
  }
}