update_info.dart 476 B

12345678910111213141516171819
  1. import 'package:flutter/foundation.dart';
  2. /// The latest published Gogs release relevant to the update check.
  3. @immutable
  4. class UpdateInfo {
  5. const UpdateInfo({
  6. required this.currentVersion,
  7. required this.latestVersion,
  8. required this.available,
  9. required this.releasePageUrl,
  10. required this.downloadUrl,
  11. });
  12. final String currentVersion;
  13. final String latestVersion;
  14. final bool available;
  15. final String releasePageUrl;
  16. final String downloadUrl;
  17. }