feat(profile): добавить обработку события выхода из профиля и rethrow (#17)

Co-authored-by: PetrovY <y.petrov@friflex.com>
This commit is contained in:
Yuri Petrov
2025-06-25 10:31:37 +03:00
committed by GitHub
parent c21fa95b7a
commit 80a8bfb905
2 changed files with 40 additions and 0 deletions

View File

@@ -1,16 +1,37 @@
part of 'profile_bloc.dart';
/// {@template profile_event}
/// События для управления состоянием профиля пользователя.
/// {@endtemplate}
sealed class ProfileEvent extends Equatable {
/// {@macro profile_event}
const ProfileEvent();
@override
List<Object> get props => [];
}
/// {@template profile_event}
/// Событие для загрузки профиля пользователя.
/// {@endtemplate}
final class ProfileFetchProfileEvent extends ProfileEvent {
/// {@macro profile_event}
const ProfileFetchProfileEvent({required this.id});
/// ID пользователя для загрузки профиля
final String id;
@override
List<Object> get props => [id];
}
/// {@template profile_logout_event}
/// Событие для выхода из профиля пользователя.
/// {@endtemplate}
final class ProfileLogoutProfileEvent extends ProfileEvent {
/// {@macro profile_logout_event}
const ProfileLogoutProfileEvent();
@override
List<Object> get props => [];
}