fromNative static method

Location fromNative(
  1. LocationNative native
)

Implementation

static Location fromNative(LocationNative native) {
  return Location(
    mapkit_geometry_point.PointImpl.fromNative(native.position),
    accuracy: to_platform.toPlatformFromPointerDouble(native.accuracy),
    altitude: to_platform.toPlatformFromPointerDouble(native.altitude),
    altitudeAccuracy:
        to_platform.toPlatformFromPointerDouble(native.altitudeAccuracy),
    heading: to_platform.toPlatformFromPointerDouble(native.heading),
    speed: to_platform.toPlatformFromPointerDouble(native.speed),
    to_platform.toPlatformAbsTimestamp(native.absoluteTimestamp),
    to_platform.toPlatformRelTimestamp(native.relativeTimestamp),
  );
}