fromNative static method

RouteEvent fromNative(
  1. RouteEventNative native, {
  2. bool takeOwnership = true,
})

Implementation

static RouteEvent fromNative(RouteEventNative native, {bool takeOwnership = true})  {
    return RouteEvent(
      RouteEventTypeImpl.fromInt(native.type),
      TurnEventImpl.fromPointer(native.turnEvent),
      TransitionEntryEventImpl.fromPointer(native.transitionEntryEvent),
      TransitionExitEventImpl.fromPointer(native.transitionExitEvent),
      TargetReachedEventImpl.fromPointer(native.targetReachedEvent),
    );
}