fromNative static method

Position fromNative(
  1. PositionNative native, {
  2. bool takeOwnership = true,
})

Implementation

static Position fromNative(PositionNative native, {bool takeOwnership = true})  {
    return Position(
      GlobalPointImpl.fromNative(native.point, takeOwnership: takeOwnership),
      native.accuracy,
      toPlatformFromPointerDouble(native.heading),
      toPlatformFromPointerDouble(native.headingAccuracy),
      LocationPointImpl.fromPointer(native.locationPoint),
      toPlatformFromPointerDouble(native.locationHeading),
    );
}