mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-24 01:36:26 +01:00
64 lines
1.1 KiB
Dart
64 lines
1.1 KiB
Dart
|
part of '../viewer_settings.dart';
|
||
|
|
||
|
@genCopyWith
|
||
|
@toString
|
||
|
class _State {
|
||
|
const _State({
|
||
|
required this.screenBrightness,
|
||
|
required this.isForceRotation,
|
||
|
required this.gpsMapProvider,
|
||
|
this.error,
|
||
|
});
|
||
|
|
||
|
@override
|
||
|
String toString() => _$toString();
|
||
|
|
||
|
final int screenBrightness;
|
||
|
final bool isForceRotation;
|
||
|
final GpsMapProvider gpsMapProvider;
|
||
|
|
||
|
final ExceptionEvent? error;
|
||
|
}
|
||
|
|
||
|
abstract class _Event {
|
||
|
const _Event();
|
||
|
}
|
||
|
|
||
|
@toString
|
||
|
class _Init implements _Event {
|
||
|
const _Init();
|
||
|
|
||
|
@override
|
||
|
String toString() => _$toString();
|
||
|
}
|
||
|
|
||
|
@toString
|
||
|
class _SetScreenBrightness implements _Event {
|
||
|
const _SetScreenBrightness(this.value);
|
||
|
|
||
|
@override
|
||
|
String toString() => _$toString();
|
||
|
|
||
|
final double value;
|
||
|
}
|
||
|
|
||
|
@toString
|
||
|
class _SetForceRotation implements _Event {
|
||
|
const _SetForceRotation(this.value);
|
||
|
|
||
|
@override
|
||
|
String toString() => _$toString();
|
||
|
|
||
|
final bool value;
|
||
|
}
|
||
|
|
||
|
@toString
|
||
|
class _SetGpsMapProvider implements _Event {
|
||
|
const _SetGpsMapProvider(this.value);
|
||
|
|
||
|
@override
|
||
|
String toString() => _$toString();
|
||
|
|
||
|
final GpsMapProvider value;
|
||
|
}
|