of static method

PackedNavigationState of(
  1. TrafficRoute trafficRoute, [
  2. RouteSearchOptions? routeSearchOptions = null,
  3. RouteSearchPoint? finishPoint = null,
  4. RoutePoint? routePosition = null,
  5. State state = State.disabled,
])

Создание объекта из перечисленных элементов.

Implementation

static PackedNavigationState of(
  TrafficRoute trafficRoute,
  [RouteSearchOptions? routeSearchOptions = null,
  RouteSearchPoint? finishPoint = null,
  RoutePoint? routePosition = null,
  State state = State.disabled
  ])  {
  var _a0 = trafficRoute._copyFromDartTo_CTrafficRoute();
  var _a1 = routeSearchOptions._copyFromDartTo_COptional_CRouteSearchOptions();
  var _a2 = finishPoint._copyFromDartTo_COptional_CRouteSearchPoint();
  var _a3 = routePosition._copyFromDartTo_COptional_CRoutePoint();
  var _a4 = state._copyFromDartTo_CState();
  _CPackedNavigationState res = _CPackedNavigationState_S_of_CTrafficRoute_COptional_CRouteSearchOptions_COptional_CRouteSearchPoint_COptional_CRoutePoint_CState(_a0, _a1, _a2, _a3, _a4);
  _a1._releaseIntermediate();
  _a0._releaseIntermediate();
  final t = res._toDart();
  res._releaseIntermediate();
  return t;
}