RouteMapObject constructor

RouteMapObject(
  1. TrafficRoute trafficRoute,
  2. bool isActive,
  3. RouteIndex index, [
  4. RouteMapObjectDisplayFlagEnumSet? displayFlags = null,
  5. RouteMapObjectCalloutLabelFlagEnumSet? calloutLabelFlags = null,
  6. RouteMapObjectCalloutLabelDisplayMode calloutLabelDisplayMode = RouteMapObjectCalloutLabelDisplayMode.absoluteValues,
  7. RouteMapObjectPermanentDisplayFlagEnumSet? permanentDisplayFlags = null,
])

Implementation

factory RouteMapObject(
  TrafficRoute trafficRoute,
  bool isActive,
  RouteIndex index,
  [RouteMapObjectDisplayFlagEnumSet? displayFlags = null,
  RouteMapObjectCalloutLabelFlagEnumSet? calloutLabelFlags = null,
  RouteMapObjectCalloutLabelDisplayMode calloutLabelDisplayMode = RouteMapObjectCalloutLabelDisplayMode.absoluteValues,
  RouteMapObjectPermanentDisplayFlagEnumSet? permanentDisplayFlags = null
  ]) {
  var _a0 = trafficRoute._copyFromDartTo_CTrafficRoute();
  var _a2 = index._copyFromDartTo_CRouteIndex();
  var _a3 = displayFlags._copyFromDartTo_COptional_COptionSet_CRouteMapObjectDisplayFlag();
  var _a4 = calloutLabelFlags._copyFromDartTo_COptional_COptionSet_CRouteMapObjectCalloutLabelFlag();
  var _a5 = calloutLabelDisplayMode._copyFromDartTo_CRouteMapObjectCalloutLabelDisplayMode();
  var _a6 = permanentDisplayFlags._copyFromDartTo_COptional_COptionSet_CRouteMapObjectPermanentDisplayFlag();
  _CRouteMapObject res = _CRouteMapObject_C_createWith_CTrafficRoute_bool_CRouteIndex_COptional_COptionSet_CRouteMapObjectDisplayFlag_COptional_COptionSet_CRouteMapObjectCalloutLabelFlag_CRouteMapObjectCalloutLabelDisplayMode_COptional_COptionSet_CRouteMapObjectPermanentDisplayFlag(_a0, isActive, _a2, _a3, _a4, _a5, _a6);
  _a0._releaseIntermediate();
  return RouteMapObject._create(res._impl);
}