Files
Holzleitner-Lieferservice-App/lib/feature/cars/bloc/cars_event.dart
Dennis Nemec 2470299a10 BIG FAT
2026-04-28 13:03:09 +02:00

34 lines
696 B
Dart

import '../../../model/car.dart';
abstract class CarEvents {}
class CarLoad extends CarEvents {
String teamId;
/// If [force] is true the API is always called, bypassing the cache.
/// Use this for pull-to-refresh. Defaults to false.
bool force;
CarLoad({required this.teamId, this.force = false});
}
class CarEdit extends CarEvents {
Car newCar;
String teamId;
CarEdit({required this.newCar, required this.teamId});
}
class CarAdd extends CarEvents {
String teamId;
String plate;
CarAdd({required this.teamId, required this.plate});
}
class CarDelete extends CarEvents {
String carId;
String teamId;
CarDelete({required this.carId, required this.teamId});
}