course-work/lib/logic/ordersstate.dart
2022-12-27 09:19:59 +04:00

21 lines
422 B
Dart

part of 'orderscubit.dart';
class OrdersState extends Equatable {
const OrdersState(this.orders, this.isLoading);
final List<Order> orders;
final bool isLoading;
@override
List<Object> get props => [orders, isLoading];
OrdersState copyWith({
final List<Order>? orders,
final bool? isLoading,
}) =>
OrdersState(
orders ?? this.orders,
isLoading ?? this.isLoading,
);
}