forked from eatvio/eatvio_app
trailing comma rule added
This commit is contained in:
@@ -23,11 +23,11 @@ class DietsCubit extends Cubit<DietsState> {
|
||||
emit(DietsState.loaded(
|
||||
dietsList: dietsPagination.data,
|
||||
isLoading: isLoading,
|
||||
));
|
||||
),);
|
||||
} catch (e) {
|
||||
emit(DietsState.error(
|
||||
errorMessage: e.toString(),
|
||||
));
|
||||
),);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ class RecipesCubit extends Cubit<RecipesState> {
|
||||
selectedTags: _selectedTags,
|
||||
selectedTagsCounter: _selectedTags.length,
|
||||
isLoading: isLoading,
|
||||
));
|
||||
),);
|
||||
} catch (e) {
|
||||
emit(RecipesState.error(errorMessage: e.toString()));
|
||||
}
|
||||
@@ -61,7 +61,7 @@ class RecipesCubit extends Cubit<RecipesState> {
|
||||
...recipesList,
|
||||
],
|
||||
isLoading: isLoading,
|
||||
));
|
||||
),);
|
||||
}
|
||||
} catch (e) {
|
||||
emit(RecipesState.error(errorMessage: e.toString()));
|
||||
@@ -74,6 +74,6 @@ class RecipesCubit extends Cubit<RecipesState> {
|
||||
emit((state as RecipesStateLoaded).copyWith(
|
||||
selectedTags: _selectedTags,
|
||||
selectedTagsCounter: _selectedTags.length,
|
||||
));
|
||||
),);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user