forked from eatvio/eatvio_app
refactor:
This commit is contained in:
@@ -9,7 +9,7 @@ class PlansCubit extends Cubit<PlansState> {
|
||||
required this.plansRepository,
|
||||
}) : super(PlansState.loading());
|
||||
|
||||
getPlans() async {
|
||||
loadPlans() async {
|
||||
try {
|
||||
emit(PlansState.loaded(plansModel: await plansRepository.getPlans()));
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user