feat: Add event name to order items and refactor navigation and shift data access to use direct object properties.
This commit is contained in:
@@ -23,6 +23,7 @@ class OrderItem extends Equatable {
|
||||
required this.filled,
|
||||
required this.workersNeeded,
|
||||
required this.hourlyRate,
|
||||
required this.eventName,
|
||||
this.hours = 0,
|
||||
this.totalValue = 0,
|
||||
this.confirmedApps = const <Map<String, dynamic>>[],
|
||||
@@ -76,6 +77,9 @@ class OrderItem extends Equatable {
|
||||
/// Total value for the shift role.
|
||||
final double totalValue;
|
||||
|
||||
/// Name of the event.
|
||||
final String eventName;
|
||||
|
||||
/// List of confirmed worker applications.
|
||||
final List<Map<String, dynamic>> confirmedApps;
|
||||
|
||||
@@ -97,6 +101,7 @@ class OrderItem extends Equatable {
|
||||
hourlyRate,
|
||||
hours,
|
||||
totalValue,
|
||||
eventName,
|
||||
confirmedApps,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user