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 when the driver confirms their car choice for the day. class CarSelectConfirm extends CarSelectEvent { final Car car; CarSelectConfirm({required this.car}); } /// Fired when the driver wants to switch to a different car. /// Resets the selection so the enforcer shows the picker again. class CarSelectChange extends CarSelectEvent {} /// Fired when the driver cancels the change and wants to keep the previous car. /// Restores [CarSelectComplete] without writing to SharedPreferences. class CarSelectCancel extends CarSelectEvent { final Car car; CarSelectCancel({required this.car}); }