addAgreeAppPrivacyLicenseCallback method

void addAgreeAppPrivacyLicenseCallback(
  1. VoidCallback agreeCallback
)

Implementation

void addAgreeAppPrivacyLicenseCallback(VoidCallback agreeCallback) {
  if (isAgreeAppPrivacyLicense.value) {
    agreeCallback.call();
  } else {
    once(isAgreeAppPrivacyLicense, (callback) {
      if (callback) {
        agreeCallback.call();
      }
    });
  }
}