mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 17:26:18 +01:00
51 lines
773 B
Dart
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;
|
|
}
|