nc-photos/app/lib/widget/place_picker/state_event.dart

41 lines
615 B
Dart
Raw Normal View History

2024-10-30 15:14:08 +01:00
part of 'place_picker.dart';
@genCopyWith
@toString
class _State {
const _State({
this.position,
required this.isDone,
2024-10-30 15:14:08 +01:00
});
factory _State.init() => const _State(
isDone: false,
);
2024-10-30 15:14:08 +01:00
@override
String toString() => _$toString();
final CameraPosition? position;
final bool isDone;
2024-10-30 15:14:08 +01:00
}
abstract class _Event {}
@toString
class _SetPosition implements _Event {
const _SetPosition(this.value);
@override
String toString() => _$toString();
final CameraPosition value;
}
@toString
class _Done implements _Event {
const _Done();
@override
String toString() => _$toString();
}