forked from eatvio/eatvio_app
fix: fixed analyzer issues and merge conflicts
This commit is contained in:
@@ -9,7 +9,7 @@ class SubCubit extends Cubit<SubState> {
|
||||
required this.profileRepository,
|
||||
}) : super(const SubState());
|
||||
|
||||
getSubscriptions(String slug, [String? query]) async {
|
||||
Future<void> getSubscriptions(String slug, [String? query]) async {
|
||||
emit(const SubState.loading());
|
||||
try {
|
||||
emit(SubState.loaded(subList: await profileRepository.getSubscriptionsBySlug(slug, query)));
|
||||
@@ -18,7 +18,7 @@ class SubCubit extends Cubit<SubState> {
|
||||
}
|
||||
}
|
||||
|
||||
getSubscribers(String slug, [String? query]) async {
|
||||
Future<void> getSubscribers(String slug, [String? query]) async {
|
||||
emit(const SubState.loading());
|
||||
try {
|
||||
emit(SubState.loaded(subList: await profileRepository.getSubscribersBySlug(slug, query)));
|
||||
@@ -27,11 +27,11 @@ class SubCubit extends Cubit<SubState> {
|
||||
}
|
||||
}
|
||||
|
||||
subscribe(String slug) async {
|
||||
Future<void> subscribe(String slug) async {
|
||||
return await profileRepository.subscribe(slug);
|
||||
}
|
||||
|
||||
unsubscribe(String slug) async {
|
||||
Future<void> unsubscribe(String slug) async {
|
||||
return await profileRepository.unsubscribe(slug);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user