mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 17:26:18 +01:00
43 lines
716 B
Dart
43 lines
716 B
Dart
|
part of '../splash.dart';
|
||
|
|
||
|
@genCopyWith
|
||
|
@toString
|
||
|
class _State {
|
||
|
const _State({
|
||
|
this.changelogFromVersion,
|
||
|
this.upgradeProgress,
|
||
|
this.upgradeText,
|
||
|
required this.isDone,
|
||
|
});
|
||
|
|
||
|
factory _State.init() => const _State(
|
||
|
isDone: false,
|
||
|
);
|
||
|
|
||
|
@override
|
||
|
String toString() => _$toString();
|
||
|
|
||
|
final int? changelogFromVersion;
|
||
|
final double? upgradeProgress;
|
||
|
final String? upgradeText;
|
||
|
final bool isDone;
|
||
|
}
|
||
|
|
||
|
abstract class _Event {}
|
||
|
|
||
|
@toString
|
||
|
class _Init implements _Event {
|
||
|
const _Init();
|
||
|
|
||
|
@override
|
||
|
String toString() => _$toString();
|
||
|
}
|
||
|
|
||
|
@toString
|
||
|
class _ChangelogDismissed implements _Event {
|
||
|
const _ChangelogDismissed();
|
||
|
|
||
|
@override
|
||
|
String toString() => _$toString();
|
||
|
}
|