nc-photos/app/lib/widget/settings/collection/state_event.dart

40 lines
599 B
Dart
Raw Normal View History

2023-08-04 21:12:29 +02:00
part of '../collection_settings.dart';
@genCopyWith
@toString
class _State {
const _State({
required this.isBrowserShowDate,
this.error,
});
@override
String toString() => _$toString();
final bool isBrowserShowDate;
final ExceptionEvent? error;
}
abstract class _Event {
const _Event();
}
@toString
class _Init implements _Event {
const _Init();
@override
String toString() => _$toString();
}
@toString
class _SetBrowserShowDate implements _Event {
const _SetBrowserShowDate(this.value);
@override
String toString() => _$toString();
final bool value;
}