fromNative static method

ZoneEvent fromNative(
  1. ZoneEventNative native, {
  2. bool takeOwnership = true,
})

Implementation

static ZoneEvent fromNative(ZoneEventNative native, {bool takeOwnership = true})  {
    return ZoneEvent(
      ZoneEventTypeImpl.fromInt(native.type),
      native.locationId,
      native.sublocationId,
      native.id,
      toPlatformString(native.name, takeOwnership: takeOwnership),
      toPlatformString(native.alias, takeOwnership: takeOwnership),
    );
}