Untitled
unknown
plain_text
a year ago
2.9 kB
4
Indexable
part of 'find_bloc.dart';
abstract class FindState extends Equatable {
const FindState();
@override
List<Object?> get props => [];
}
class FindInitial extends FindState {
const FindInitial();
}
class FindLoading extends FindState {
const FindLoading();
}
class FindError extends FindState {
const FindError(this.message);
final String message;
@override
List<Object?> get props => [message];
}
class ChargeStationsLoaded extends FindState {
const ChargeStationsLoaded(this.chargeStations);
final List<ChargeStation> chargeStations;
@override
List<Object?> get props => [chargeStations];
}
class GetChargeStationsError extends FindState {
const GetChargeStationsError(this.message);
final String message;
@override
List<Object?> get props => [message];
}
class OpenMapsNavigationSuccess extends FindState {
const OpenMapsNavigationSuccess();
@override
List<Object?> get props => [];
}
class MarkersLoaded extends FindState {
const MarkersLoaded(this.markers);
final Set<Marker> markers;
@override
List<Object?> get props => [markers];
}
class GetFavoriteChargeStationsLoaded extends FindState {
const GetFavoriteChargeStationsLoaded(this.favoriteChargeStations);
final List<ChargeStation> favoriteChargeStations;
@override
List<Object?> get props => [favoriteChargeStations];
}
class GetFavoriteChargeStationsError extends FindState {
const GetFavoriteChargeStationsError(this.message, this.codeStatus);
final String message;
final int codeStatus;
@override
List<Object?> get props => [message, codeStatus];
}
class AddFavoriteChargeStationsSuccess extends FindState {
const AddFavoriteChargeStationsSuccess(this.chargerStationId);
final String chargerStationId;
@override
List<Object?> get props => [chargerStationId];
}
class AddFavoriteChargeStationsError extends FindState {
const AddFavoriteChargeStationsError(this.message, this.status);
final String message;
final int status;
@override
List<Object?> get props => [message, status];
}
class DeleteFavoriteChargeStationsSuccess extends FindState {
const DeleteFavoriteChargeStationsSuccess(this.chargerStationId);
final String chargerStationId;
@override
List<Object?> get props => [chargerStationId];
}
class DeleteFavoriteChargeStationsError extends FindState {
const DeleteFavoriteChargeStationsError(this.message, this.status);
final String message;
final int status;
@override
List<Object?> get props => [message, status];
}
class FilteredChargeStationsLoaded extends FindState {
const FilteredChargeStationsLoaded(this.filteredChargeStations);
final List<ChargeStation> filteredChargeStations;
@override
List<Object> get props => [filteredChargeStations];
}
Editor is loading...
Leave a Comment