import 'package:equatable/equatable.dart'; import '../../models/trip.dart'; abstract class TripState extends Equatable { const TripState(); @override List get props => []; } class TripInitial extends TripState {} class TripLoading extends TripState {} class TripLoaded extends TripState { final List trips; const TripLoaded(this.trips); @override List get props => [trips]; } // NOUVEAU : État pour indiquer qu'un voyage a été créé avec succès class TripCreated extends TripState { final String tripId; final String message; const TripCreated({ required this.tripId, this.message = 'Voyage créé avec succès', }); @override List get props => [tripId, message]; } class TripOperationSuccess extends TripState { final String message; const TripOperationSuccess(this.message); @override List get props => [message]; } class TripError extends TripState { final String message; const TripError(this.message); @override List get props => [message]; }