nc-photos/app/lib/widget/settings/metadata/state_event.dart
2023-07-28 00:52:27 +08:00

51 lines
773 B
Dart

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;
}