UpdateEntity class

版本更新信息,用于显示版本更新弹窗

Constructors

UpdateEntity({required bool? hasUpdate, bool? isForce, bool? isIgnorable, required int? versionCode, required String? versionName, required String? updateContent, required String? downloadUrl, int? apkSize, String? apkMd5})

Properties

apkMd5 String?
apk文件的加密值(这里默认是md5值)
final
apkSize int?
apk的大小
final
downloadUrl String?
下载地址
final
hashCode int
The hash code for this object.
no setterinherited
hasUpdate bool?
是否有新版本
final
isForce bool?
是否强制安装:不安装无法使用app
final
isIgnorable bool?
是否可忽略该版本
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updateContent String?
更新内容
final
versionCode int?
版本号
final
versionName String?
版本名称
final

Methods

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

Operators

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

Static Methods

fromJson(String source) UpdateEntity?
fromMap(Map<String, dynamic>? map) UpdateEntity?