feat(profile): send message and subscribe button

This commit is contained in:
mso7nueh
2024-11-22 16:44:52 +03:00
parent c909c75d47
commit b8afeb53b4
6 changed files with 124 additions and 4 deletions

View File

@@ -26,4 +26,12 @@ class SubCubit extends Cubit<SubState> {
emit(SubState.error(errorMessage: e.toString()));
}
}
subscribe(String slug) async {
return await profileRepository.subscribe(slug);
}
unsubscribe(String slug) async {
return await profileRepository.unsubscribe(slug);
}
}