onUserUpdated method
Implementation
void onUserUpdated(BuildContext context, bool shouldPop) {
if (widget.upgrader.state.debugLogging) {
print('upgrader: button tapped: update now');
}
// If this callback has been provided, call it.
final doProcess = widget.onUpdate?.call() ?? true;
if (doProcess) {
widget.upgrader.sendUserToAppStore();
}
if (shouldPop) {
popNavigator(context);
}
}