GeoClueLocation.fromProperties constructor
Creates a new GeoClueLocation from a map of values
.
Implementation
factory GeoClueLocation.fromProperties(Map<String, DBusValue> values) {
return GeoClueLocation(
accuracy: values.get<double>('Accuracy')!,
altitude: values.get<double>('Altitude').orNullIf(-double.maxFinite),
description: values.get<String>('Description'),
heading: values.get<double>('Heading').orNullIf(-1.0),
latitude: values.get<double>('Latitude')!,
longitude: values.get<double>('Longitude')!,
speed: values.get<double>('Speed').orNullIf(-1.0),
timestamp: values['Timestamp']?.toTimestamp(),
);
}