course-work/lib/logic/couriersstate.dart

21 lines
448 B
Dart
Raw Permalink Normal View History

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