Initial draft
This commit is contained in:
23
lib/feature/cars/bloc/cars_state.dart
Normal file
23
lib/feature/cars/bloc/cars_state.dart
Normal file
@ -0,0 +1,23 @@
|
||||
import 'package:hl_lieferservice/model/car.dart';
|
||||
|
||||
abstract class CarsState {}
|
||||
|
||||
class CarsInitial extends CarsState {}
|
||||
|
||||
class CarsLoading extends CarsState {}
|
||||
|
||||
class CarsLoadingFailed extends CarsState {}
|
||||
|
||||
class CarsLoaded extends CarsState {
|
||||
List<Car> cars;
|
||||
String teamId;
|
||||
|
||||
CarsLoaded({required this.cars, required this.teamId});
|
||||
|
||||
CarsLoaded copyWith({List<Car>? cars, String? teamId}) {
|
||||
return CarsLoaded(
|
||||
cars: cars ?? this.cars,
|
||||
teamId: teamId ?? this.teamId,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user