UpdateModel class

数据实体

Constructors

UpdateModel.new(String apkUrl, String apkName, String smallIcon, String apkDescription, {int? apkVersionCode, String? apkVersionName, String? apkSize, String? apkMD5, bool showNewerToast = false, bool showNotification = true, bool jumpInstallPage = true, bool showBgdToast = true, bool forcedUpgrade = false, bool showiOSDialog = true, String? iOSUrl})

Properties

apkDescription String
更新描述
final
apkMD5 String?
新安装包md5文件校验(32位),校验重复下载
final
apkName String
下载好的apk名称
final
apkSize String?
安装包大小 单位 M
final
apkUrl String
下载地址
final
apkVersionCode int?
-----------------以上3个属性为必须设置,以下属性为可选----------------- ------------当设置了VersionCode的值时会自动判断是否需要更新------------ 要更新apk的versionCode
final
apkVersionName String?
显示给用户的版本号
final
forcedUpgrade bool
是否强制升级(默认为false)
final
hashCode int
The hash code for this object.
no setterinherited
iOSUrl String?
ios 下载链接
final
jumpInstallPage bool
下载完成是否自动弹出安装页面 (默认为true)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showBgdToast bool
下载开始时是否提示 "正在后台下载新版本…" (默认为true)
final
showiOSDialog bool
ios 是否显示对话框
final
showNewerToast bool
是否提示用户 "当前已是最新版本"(默认为false)
final
showNotification bool
是否需要显示通知栏进度(默认为true)
final
smallIcon String
通知栏的小图标,这里传入的是mipmap文件下的图片名称 eg:ic_launcher.png则传入ic_launcher
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
转json
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited