added more blocs
This commit is contained in:
20
lib/domains/category/category_state.dart
Normal file
20
lib/domains/category/category_state.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
part of 'category_bloc.dart';
|
||||
|
||||
final class CategoryState extends Equatable {
|
||||
final List<Category> categories;
|
||||
|
||||
const CategoryState({
|
||||
this.categories = const [],
|
||||
});
|
||||
|
||||
CategoryState copyWith({
|
||||
List<Category>? categories,
|
||||
}) {
|
||||
return CategoryState(
|
||||
categories: categories ?? this.categories,
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
List<Object> get props => [categories];
|
||||
}
|
||||
Reference in New Issue
Block a user