feat(api): update DeviceLocation model and clean up AuthRepositoryImpl and BillingPageSkeleton
This commit is contained in:
@@ -2,6 +2,14 @@ import 'package:equatable/equatable.dart';
|
||||
|
||||
/// Represents a geographic location obtained from the device.
|
||||
class DeviceLocation extends Equatable {
|
||||
|
||||
/// Creates a [DeviceLocation] instance.
|
||||
const DeviceLocation({
|
||||
required this.latitude,
|
||||
required this.longitude,
|
||||
required this.accuracy,
|
||||
required this.timestamp,
|
||||
});
|
||||
/// Latitude in degrees.
|
||||
final double latitude;
|
||||
|
||||
@@ -14,14 +22,6 @@ class DeviceLocation extends Equatable {
|
||||
/// Time when this location was determined.
|
||||
final DateTime timestamp;
|
||||
|
||||
/// Creates a [DeviceLocation] instance.
|
||||
const DeviceLocation({
|
||||
required this.latitude,
|
||||
required this.longitude,
|
||||
required this.accuracy,
|
||||
required this.timestamp,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object?> get props => [latitude, longitude, accuracy, timestamp];
|
||||
List<Object?> get props => <Object?>[latitude, longitude, accuracy, timestamp];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user