onUserUpdated method

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

Implementation

void onUserUpdated(BuildContext context, bool shouldPop) {
  if (debugLogging) {
    print('upgrader: button tapped: update now');
  }

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

  if (doProcess) {
    _sendUserToAppStore();
  }

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