VersionInfo constructor

VersionInfo({
  1. String? localVersion,
  2. String? storeVersion,
  3. String? appStoreLink,
  4. String? releaseNotes,
  5. String? releaseDate,
})

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;
}