course-work/lib/logic/itemsstate.dart

21 lines
409 B
Dart
Raw Permalink Normal View History

2022-12-27 05:19:59 +00:00
part of 'itemscubit.dart';
class ItemsState extends Equatable {
const ItemsState(this.items, this.isLoading);
final List<Item> items;
final bool isLoading;
@override
List<Object> get props => [items, isLoading];
ItemsState copyWith({
final List<Item>? items,
final bool? isLoading,
}) =>
ItemsState(
items ?? this.items,
isLoading ?? this.isLoading,
);
}