fromNative static method

TurnEvent fromNative(
  1. TurnEventNative native, {
  2. bool takeOwnership = true,
})

Implementation

static TurnEvent fromNative(TurnEventNative native, {bool takeOwnership = true})  {
    return TurnEvent(
      TurnTypeImpl.fromInt(native.type),
      native.angle,
    );
}