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

21 lines
448 B
Dart

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