Files
immich/mobile-v2/lib/presentation/home_page/cubit/home_cubit.dart
T
2025-02-26 08:58:18 +05:30

16 lines
343 B
Dart

import 'package:bloc/bloc.dart';
part 'home_state.dart';
class HomeCubit extends Cubit<HomeState> {
HomeCubit() : super(HomeState(albumCount: 0));
void increaseAlbumCount() {
emit(state.copyWith(albumCount: state.albumCount + 1));
}
void decreaseAlbumCount() {
emit(state.copyWith(albumCount: state.albumCount - 1));
}
}