Implemented settings, new scan, enhanced UI/UX
This commit is contained in:
@ -8,6 +8,24 @@ class CarsLoading extends CarsState {}
|
||||
|
||||
class CarsLoadingFailed extends CarsState {}
|
||||
|
||||
class CarAdded extends CarsState {
|
||||
Car car;
|
||||
|
||||
CarAdded({required this.car});
|
||||
}
|
||||
|
||||
class CarDeleted extends CarsState {
|
||||
String plate;
|
||||
|
||||
CarDeleted({required this.plate});
|
||||
}
|
||||
|
||||
class CarEdited extends CarsState {
|
||||
Car car;
|
||||
|
||||
CarEdited({required this.car});
|
||||
}
|
||||
|
||||
class CarsLoaded extends CarsState {
|
||||
List<Car> cars;
|
||||
String teamId;
|
||||
@ -15,9 +33,6 @@ class CarsLoaded extends CarsState {
|
||||
CarsLoaded({required this.cars, required this.teamId});
|
||||
|
||||
CarsLoaded copyWith({List<Car>? cars, String? teamId}) {
|
||||
return CarsLoaded(
|
||||
cars: cars ?? this.cars,
|
||||
teamId: teamId ?? this.teamId,
|
||||
);
|
||||
return CarsLoaded(cars: cars ?? this.cars, teamId: teamId ?? this.teamId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user