LocationPointInput constructor

LocationPointInput({
  1. Timestamp? timestamp,
  2. double? latitude,
  3. double? longitude,
  4. double? altitude,
  5. double? accuracy,
  6. double? speed,
  7. double? bearing,
  8. LocationSource? source,
  9. Struct? extra,
  10. String? deviceId,
})

Implementation

factory LocationPointInput({
  $2.Timestamp? timestamp,
  $core.double? latitude,
  $core.double? longitude,
  $core.double? altitude,
  $core.double? accuracy,
  $core.double? speed,
  $core.double? bearing,
  LocationSource? source,
  $6.Struct? extra,
  $core.String? deviceId,
}) {
  final $result = create();
  if (timestamp != null) {
    $result.timestamp = timestamp;
  }
  if (latitude != null) {
    $result.latitude = latitude;
  }
  if (longitude != null) {
    $result.longitude = longitude;
  }
  if (altitude != null) {
    $result.altitude = altitude;
  }
  if (accuracy != null) {
    $result.accuracy = accuracy;
  }
  if (speed != null) {
    $result.speed = speed;
  }
  if (bearing != null) {
    $result.bearing = bearing;
  }
  if (source != null) {
    $result.source = source;
  }
  if (extra != null) {
    $result.extra = extra;
  }
  if (deviceId != null) {
    $result.deviceId = deviceId;
  }
  return $result;
}