Added components to article
This commit is contained in:
@ -2,14 +2,20 @@ import 'package:hl_lieferservice/model/car.dart';
|
||||
|
||||
abstract class CarSelectEvent {}
|
||||
|
||||
/// Fired at app startup to check if a car has already been selected for today.
|
||||
class CarSelectLoad extends CarSelectEvent {}
|
||||
/// Fired at app startup to check if a car has already been selected for today
|
||||
/// for the given user.
|
||||
class CarSelectLoad extends CarSelectEvent {
|
||||
final String userId;
|
||||
|
||||
CarSelectLoad({required this.userId});
|
||||
}
|
||||
|
||||
/// Fired when the driver confirms their car choice for the day.
|
||||
class CarSelectConfirm extends CarSelectEvent {
|
||||
final String userId;
|
||||
final Car car;
|
||||
|
||||
CarSelectConfirm({required this.car});
|
||||
CarSelectConfirm({required this.userId, required this.car});
|
||||
}
|
||||
|
||||
/// Fired when the driver wants to switch to a different car.
|
||||
@ -22,4 +28,4 @@ class CarSelectCancel extends CarSelectEvent {
|
||||
final Car car;
|
||||
|
||||
CarSelectCancel({required this.car});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user