Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
routing_planning_state.dart
Go to the documentation of this file.
1part of 'routing_planning_bloc.dart';
2
3sealed class RoutingPlanningState extends Equatable {
5
6 @override
7 List<Object?> get props => [];
8}
9
10class RoutingPlanningInitial extends RoutingPlanningState {}
11
12class RoutingPlanningLoading extends RoutingPlanningState {}
13
15 final LatLng? startLocation;
17 final Set<ResWeeklyCollectionEntity>? selectedCollections;
18 final List<ResCollectionToScheduleEntity>? collectionsToSchedule;
19 final LatLng? endLocation;
21
23 this.startLocation,
24 this.startAddress,
25 this.selectedCollections,
26 this.collectionsToSchedule,
27 this.endLocation,
28 this.endAddress,
29 });
30
31 bool get isComplete =>
32 startLocation != null &&
33 collectionsToSchedule != null &&
34 collectionsToSchedule!.isNotEmpty &&
35 endLocation != null;
36
54
55 @override
56 List<Object?> get props => [
63 ];
64}
65
68
69 const RoutingPlanningSuccess({required this.routing});
70
71 @override
72 List<Object> get props => [routing];
73}
74
77 final LatLng? startLocation;
78 final String? startAddress;
79 final Set<ResWeeklyCollectionEntity>? selectedCollections;
80 final List<ResCollectionToScheduleEntity>? collectionsToSchedule;
81 final LatLng? endLocation;
82 final String? endAddress;
83
85 required this.failure,
86 this.startLocation,
87 this.startAddress,
88 this.selectedCollections,
89 this.collectionsToSchedule,
90 this.endLocation,
91 this.endAddress,
92 });
93
94 bool get isComplete =>
95 startLocation != null &&
96 collectionsToSchedule != null &&
97 collectionsToSchedule!.isNotEmpty &&
98 endLocation != null;
99
100 @override
101 List<Object?> get props => [
102 failure,
109 ];
110}
sealed class AuthenticationState extends Equatable failure
const RoutingPlanningState()
override List< Object?> get props
override List< Object > get props
final ResCreateRoutingEntity routing
const RoutingPlanningSuccess({required this.routing})
class Partner String
String get(String locale)
ResCreateRoutingEntity({ required this.numLateVisits, required this.numUnserved, required this.solution, required this.status, required this.totalBreakTime, required this.totalIdleTime, required this.totalTravelTime, required this.totalVehicleOvertime, required this.totalVisitLateness, required this.totalWorkingTime, required this.vehicleOvertime, })
const RoutingPlanningLoaded({ this.startLocation, this.startAddress, this.selectedCollections, this.collectionsToSchedule, this.endLocation, this.endAddress, })
final String startAddress
RoutingPlanningLoaded copyWith({ LatLng? startLocation, String? startAddress, Set< ResWeeklyCollectionEntity >? selectedCollections, List< ResCollectionToScheduleEntity >? collectionsToSchedule, LatLng? endLocation, String? endAddress, })
final String endAddress
const RoutingPlanningError({ required this.failure, this.startLocation, this.startAddress, this.selectedCollections, this.collectionsToSchedule, this.endLocation, this.endAddress, })
sealed class RoutingPlanningState extends Equatable startLocation
bool get isComplete
final Set< ResWeeklyCollectionEntity > selectedCollections
final List< ResCollectionToScheduleEntity > collectionsToSchedule
final LatLng endLocation
abstract class UseCase< Type, Params > props