find_event

 avatar
unknown
dart
5 months ago
853 B
2
Indexable
part of 'find_bloc.dart';

abstract class FindEvent extends Equatable {
  const FindEvent();
}

class GetChargeStationsEvent extends FindEvent {
  const GetChargeStationsEvent();

  @override
  List<Object?> get props => [];
}

class OpenMapsNavigationEvent extends FindEvent {
  const OpenMapsNavigationEvent(this.coordinates);

  final List<double> coordinates;

  @override
  List<Object?> get props => [coordinates];
}

class LoadMarkersEvent extends FindEvent {
  const LoadMarkersEvent(this.chargerStations);

  final List<ChargerStation> chargerStations;

  @override
  List<Object?> get props => [chargerStations];
}

class GetFavoriteChargeStationsEvent extends FindEvent {
  const GetFavoriteChargeStationsEvent(this.userId);

  final String userId;

  @override
  List<Object?> get props => [userId];
}
Editor is loading...
Leave a Comment