VersionCheckInfo.parsed constructor

VersionCheckInfo.parsed({
  1. required String forceUpgradePrior,
  2. required String warnUpgradePrior,
})

Implementation

factory VersionCheckInfo.parsed(
        {required String forceUpgradePrior,
        required String warnUpgradePrior}) =>
    _VersionCheckInfo(
      forceUpgradePrior: semver.Version.parse(forceUpgradePrior),
      warnUpgradePrior: semver.Version.parse(warnUpgradePrior),
    );