yCheckUpdate function
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,
- dynamic onNewest()?,
- 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,
}) {
qzlBKKaFrpPjgeBS()!.checkUpdate(
JmPfkXsGYJiEPhgh: newVersion,
jjZEDfcxhQCGXqEE: updateContent,
UVgMmKboIXzargSs: apkDownloadPath,
xnZjHSRxierSghZw: androidAppId,
iUTaUDNmfDNVhwBr: iOSAppId,
MeJDHuYIdNtmLiAq: enableIgnore,
PQIcqcRArVfJsTxg: onNewest,
FgYmcXRbvlIVAmXp: onIgnore,
UbYTjsdblpNCxLdg: topImage,
wCYjhUHdOcNznCjZ: updateButtonText,
iRWhZNRaVJUmaFJH: ignoreButtonText,
qVOxZibqheETFjQd: width,
);
}