mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 01:06:21 +01:00
21 lines
514 B
Dart
21 lines
514 B
Dart
part of 'place_picker.dart';
|
|
|
|
@npLog
|
|
class _Bloc extends Bloc<_Event, _State> with BlocLogger {
|
|
_Bloc() : super(_State.init()) {
|
|
on<_SetPosition>(_onSetPosition);
|
|
}
|
|
|
|
@override
|
|
String get tag => _log.fullName;
|
|
|
|
@override
|
|
bool Function(dynamic, dynamic)? get shouldLog => (currentState, nextState) {
|
|
return currentState.position == nextState.position;
|
|
};
|
|
|
|
void _onSetPosition(_SetPosition ev, _Emitter emit) {
|
|
// _log.info(ev);
|
|
emit(state.copyWith(position: ev.value));
|
|
}
|
|
}
|