RouteEditorSource constructor

RouteEditorSource(
  1. Context context,
  2. RouteEditor routeEditor, [
  3. RouteMapObjectDisplayFlagEnumSet? activeDisplayFlags = null,
  4. RouteMapObjectDisplayFlagEnumSet? inactiveDisplayFlags = null,
  5. RouteMapObjectCalloutLabelFlagEnumSet? activeCalloutLabelFlags = null,
  6. RouteMapObjectCalloutLabelFlagEnumSet? inactiveCalloutLabelFlags = null,
  7. RouteMapObjectCalloutLabelDisplayMode calloutLabelDisplayMode = RouteMapObjectCalloutLabelDisplayMode.absoluteValues,
  8. RouteMapObjectPermanentDisplayFlagEnumSet? activePermanentDisplayFlags = null,
  9. RouteMapObjectPermanentDisplayFlagEnumSet? inactivePermanentDisplayFlags = null,
])

Функция создания IRouteEditorSource.

  • Throws: Exception если невозможно получить зависимости IRouteEditorSource из контекста или если route_editor равен null

Implementation

factory RouteEditorSource(
  Context context,
  RouteEditor routeEditor,
  [RouteMapObjectDisplayFlagEnumSet? activeDisplayFlags = null,
  RouteMapObjectDisplayFlagEnumSet? inactiveDisplayFlags = null,
  RouteMapObjectCalloutLabelFlagEnumSet? activeCalloutLabelFlags = null,
  RouteMapObjectCalloutLabelFlagEnumSet? inactiveCalloutLabelFlags = null,
  RouteMapObjectCalloutLabelDisplayMode calloutLabelDisplayMode = RouteMapObjectCalloutLabelDisplayMode.absoluteValues,
  RouteMapObjectPermanentDisplayFlagEnumSet? activePermanentDisplayFlags = null,
  RouteMapObjectPermanentDisplayFlagEnumSet? inactivePermanentDisplayFlags = null
  ]) {
  var _a0 = context._copyFromDartTo_CContext();
  var _a1 = routeEditor._copyFromDartTo_CRouteEditor();
  var _a2 = activeDisplayFlags._copyFromDartTo_COptional_COptionSet_CRouteMapObjectDisplayFlag();
  var _a3 = inactiveDisplayFlags._copyFromDartTo_COptional_COptionSet_CRouteMapObjectDisplayFlag();
  var _a4 = activeCalloutLabelFlags._copyFromDartTo_COptional_COptionSet_CRouteMapObjectCalloutLabelFlag();
  var _a5 = inactiveCalloutLabelFlags._copyFromDartTo_COptional_COptionSet_CRouteMapObjectCalloutLabelFlag();
  var _a6 = calloutLabelDisplayMode._copyFromDartTo_CRouteMapObjectCalloutLabelDisplayMode();
  var _a7 = activePermanentDisplayFlags._copyFromDartTo_COptional_COptionSet_CRouteMapObjectPermanentDisplayFlag();
  var _a8 = inactivePermanentDisplayFlags._copyFromDartTo_COptional_COptionSet_CRouteMapObjectPermanentDisplayFlag();
  _CRouteEditorSource res = _CRouteEditorSource_C_createWith_CContext_CRouteEditor_COptional_COptionSet_CRouteMapObjectDisplayFlag_COptional_COptionSet_CRouteMapObjectDisplayFlag_COptional_COptionSet_CRouteMapObjectCalloutLabelFlag_COptional_COptionSet_CRouteMapObjectCalloutLabelFlag_CRouteMapObjectCalloutLabelDisplayMode_COptional_COptionSet_CRouteMapObjectPermanentDisplayFlag_COptional_COptionSet_CRouteMapObjectPermanentDisplayFlag(_a0, _a1, _a2, _a3, _a4, _a5, _a6, _a7, _a8);
  _a1._releaseIntermediate();
  _a0._releaseIntermediate();
  return RouteEditorSource._create(res._impl);
}