Location constructor
Location({
- double? latitude,
- double? longitude,
- double? accuracy,
- double? altitude,
- double? bearing,
- double? speed,
- String? country,
- String? province,
- String? city,
- String? district,
- String? street,
- String? streetNumber,
- String? cityCode,
- String? adCode,
- String? address,
- String? description,
- String? snapshotUrl,
- double? zoomLevel,
- double? distance,
Implementation
Location({
double? latitude,
double? longitude,
double? accuracy,
double? altitude,
double? bearing,
double? speed,
String? country,
String? province,
String? city,
String? district,
String? street,
String? streetNumber,
String? cityCode,
String? adCode,
String? address,
String? description,
String? snapshotUrl,
double? zoomLevel,
double? distance,
}) : latitude = latitude ?? 39.909187,
longitude = longitude ?? 116.397451,
accuracy = accuracy ?? 0,
altitude = altitude ?? 0,
bearing = bearing ?? 0,
speed = speed ?? 0,
country = country ?? '',
province = province ?? '',
city = city ?? '',
district = district ?? '',
street = street ?? '',
streetNumber = streetNumber ?? '',
cityCode = cityCode ?? '',
adCode = adCode ?? '',
address = address ?? '',
description = description ?? '',
snapshotUrl = snapshotUrl ?? '',
zoomLevel = zoomLevel ?? 16.0,
distance = distance ?? 0;