VersionInfo constructor
VersionInfo({})
An instance of the VersionInfo Constructor
Implementation
VersionInfo({
String? localVersion,
String? storeVersion,
String? appStoreLink,
String? releaseNotes,
String? releaseDate,
}) {
_localVersion = localVersion;
_storeVersion = storeVersion;
_appStoreLink = appStoreLink;
_releaseNotes = releaseNotes;
if (releaseDate?.isNotEmpty == true) {
_releaseDate = DateTime.parse(releaseDate!);
}
_isReviewing = _checkBigger(localVersion, storeVersion);
_canUpdate = _checkBigger(storeVersion, localVersion) ?? false;
}