yCheckUpdate function

void yCheckUpdate({
  1. required int newVersion,
  2. required String updateContent,
  3. required String? apkDownloadPath,
  4. required String? androidAppId,
  5. required String? iOSAppId,
  6. String updateButtonText = "立即升级",
  7. String ignoreButtonText = "忽略此版本",
  8. Image? topImage,
  9. double width = 250,
  10. bool enableIgnore = false,
  11. dynamic onNewest()?,
  12. dynamic onIgnore()?,
})

检测更新

Implementation

void yCheckUpdate({
  required int newVersion,
  required String updateContent,
  required String? apkDownloadPath,
  required String? androidAppId,
  required String? iOSAppId,
  String updateButtonText = "立即升级",
  String ignoreButtonText = "忽略此版本",
  Image? topImage,
  double width = 250,
  bool enableIgnore = false,
  Function()? onNewest,
  Function()? onIgnore,
}) {
  hBcHAucGnmpQjJYi()!.checkUpdate(
    NbBVLtiGbcymxQKe: newVersion,
    LMHWMqRgOwtYDnPe: updateContent,
    ohbACSEdNtEgPNya: apkDownloadPath,
    JCBLasfaCceGDZIr: androidAppId,
    EohTKnJmAJrshQrh: iOSAppId,
    XItAXaEFWkkAmUZD: enableIgnore,
    pGfAgDOOGdjzjERS: onNewest,
    bXcoTYyVMqyScIGt: onIgnore,
    LmBBbTFTXPzUPtqH: topImage,
    QBCxSqvxzAGXDPhV: updateButtonText,
    iQpOyEdMLwhcjBzN: ignoreButtonText,
    afgjcPHkLmVXKMYJ: width,
  );
}