23 lines
500 B
Dart
23 lines
500 B
Dart
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,
|
|
);
|
|
}
|
|
} |