new project stable version
This commit is contained in:
33
lib/presentation/event/map_event.dart
Normal file
33
lib/presentation/event/map_event.dart
Normal file
@@ -0,0 +1,33 @@
|
||||
import '../../domain/entities/client_notification.dart';
|
||||
import '../../domain/entities/point.dart';
|
||||
import '../../domain/entities/scooter.dart';
|
||||
import '../../domain/entities/zone.dart';
|
||||
|
||||
abstract class ScooterEvent {}
|
||||
|
||||
class CheckUser extends ScooterEvent {}
|
||||
|
||||
class FetchScooters extends ScooterEvent {
|
||||
final List<double> area;
|
||||
final List<double> areaScooters;
|
||||
FetchScooters(this.area, this.areaScooters);
|
||||
}
|
||||
|
||||
class UpdateMap extends ScooterEvent {}
|
||||
|
||||
class FetchProfileData extends ScooterEvent {}
|
||||
|
||||
class LogoutPressed extends ScooterEvent {}
|
||||
|
||||
class UpdateUserLocation extends ScooterEvent {
|
||||
final double latitude;
|
||||
final double longitude;
|
||||
UpdateUserLocation(this.latitude, this.longitude);
|
||||
}
|
||||
|
||||
class NotificationReceived extends ScooterEvent {
|
||||
final ClientNotification notification;
|
||||
NotificationReceived(this.notification);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user