nc-photos/app/lib/widget/splash/state_event.dart

43 lines
716 B
Dart
Raw Normal View History

2024-08-17 20:01:59 +02:00
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();
}