mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 01:06:21 +01:00
52 lines
817 B
Dart
52 lines
817 B
Dart
|
part of '../photos_settings.dart';
|
||
|
|
||
|
@genCopyWith
|
||
|
@toString
|
||
|
class _State {
|
||
|
const _State({
|
||
|
required this.isEnableMemories,
|
||
|
required this.memoriesRange,
|
||
|
this.error,
|
||
|
});
|
||
|
|
||
|
@override
|
||
|
String toString() => _$toString();
|
||
|
|
||
|
final bool isEnableMemories;
|
||
|
final int memoriesRange;
|
||
|
|
||
|
final ExceptionEvent? error;
|
||
|
}
|
||
|
|
||
|
abstract class _Event {
|
||
|
const _Event();
|
||
|
}
|
||
|
|
||
|
@toString
|
||
|
class _Init implements _Event {
|
||
|
const _Init();
|
||
|
|
||
|
@override
|
||
|
String toString() => _$toString();
|
||
|
}
|
||
|
|
||
|
@toString
|
||
|
class _SetEnableMemories implements _Event {
|
||
|
const _SetEnableMemories(this.value);
|
||
|
|
||
|
@override
|
||
|
String toString() => _$toString();
|
||
|
|
||
|
final bool value;
|
||
|
}
|
||
|
|
||
|
@toString
|
||
|
class _SetMemoriesRange implements _Event {
|
||
|
const _SetMemoriesRange(this.value);
|
||
|
|
||
|
@override
|
||
|
String toString() => _$toString();
|
||
|
|
||
|
final int value;
|
||
|
}
|