TrafficRouter constructor
TrafficRouter(
- Context context, [
- RouterType routerType = RouterType.hybrid
- Throws: Exception, если отсутствует системный контекст или если из него невозможно получить ITrafficRouterPtr
Implementation
factory TrafficRouter(
Context context,
[RouterType routerType = RouterType.hybrid
]) {
var _a0 = context._copyFromDartTo_CContext();
var _a1 = routerType._copyFromDartTo_CRouterType();
_CTrafficRouter res = _CTrafficRouter_C_createWith_CContext_CRouterType(_a0, _a1);
_a0._releaseIntermediate();
return TrafficRouter._create(res._impl);
}