onUserIgnored method

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

Implementation

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

  // If this callback has been provided, call it.
  final doProcess = widget.onIgnore?.call() ?? true;

  if (doProcess) {
    widget.upgrader.saveIgnored();
  }

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