course-work/lib/logic/ordersstate.dart

21 lines
422 B
Dart
Raw Normal View History

2022-12-27 05:19:59 +00:00
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,
);
}