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

52 lines
773 B
Dart
Raw Normal View History

2023-07-27 17:14:50 +02:00
part of '../metadata_settings.dart';
@genCopyWith
@toString
class _State {
const _State({
required this.isEnable,
required this.isWifiOnly,
this.error,
});
@override
String toString() => _$toString();
final bool isEnable;
final bool isWifiOnly;
final ExceptionEvent? error;
}
abstract class _Event {
const _Event();
}
@toString
class _Init implements _Event {
const _Init();
@override
String toString() => _$toString();
}
@toString
class _SetEnable implements _Event {
const _SetEnable(this.value);
@override
String toString() => _$toString();
final bool value;
}
@toString
class _SetWifiOnly implements _Event {
const _SetWifiOnly(this.value);
@override
String toString() => _$toString();
final bool value;
}