updateAvailable method

void updateAvailable(
  1. String version,
  2. String newVersion,
  3. String changelogLink
)

Implementation

void updateAvailable(
  String version,
  String newVersion,
  String changelogLink,
) {
  if (!_isSilent) {
    _output
      ..writeln()
      ..writeln(
        '🆕 Update available! ${warningPen('$version -> $newVersion')}',
      )
      ..writeln('🆕 Changelog: ${warningPen(changelogLink)}');
  }
}