一次大的提交
This commit is contained in:
@@ -45,4 +45,11 @@ class MyCubit extends Cubit<MyState> {
|
||||
emit(state.copyWith(isLoading: true, errorMessage: ''));
|
||||
// 解绑逻辑(如需保留,需补充 UnbindDeviceUsecase 依赖注入)
|
||||
}
|
||||
|
||||
/// 🔥 退出登录时清空所有状态(昵称等个人信息)
|
||||
void clearAll() {
|
||||
if (!isClosed) {
|
||||
emit(const MyState());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user