fromNative static method

Polygon fromNative(
  1. PolygonNative native, {
  2. bool takeOwnership = true,
})

Implementation

static Polygon fromNative(PolygonNative native, {bool takeOwnership = true})  {
    return Polygon(
      ListPointImpl.fromNativePtr(native.points),
    );
}