Fix local dev config and ALOTTTT OFF FLUTTER, im tired boss..
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
class SosEvent {
|
||||
final int? id;
|
||||
final String triggerType;
|
||||
final double? lat;
|
||||
final double? lng;
|
||||
final String status;
|
||||
final DateTime? createdAt;
|
||||
|
||||
const SosEvent({
|
||||
this.id,
|
||||
required this.triggerType,
|
||||
this.lat,
|
||||
this.lng,
|
||||
this.status = 'TRIGGERED',
|
||||
this.createdAt,
|
||||
});
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
import 'package:dartz/dartz.dart';
|
||||
|
||||
import '../../../../core/errors/failures.dart';
|
||||
|
||||
abstract class SosRepository {
|
||||
Future<Either<Failure, void>> triggerSos({
|
||||
required String triggerType,
|
||||
double? lat,
|
||||
double? lng,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user