blob: 35cf07e697dd6644252714163b104567c0b9c0a9 [file] [log] [blame] [view]
# ComponentContext constructor
*[<Null safety>](https://dart.dev/null-safety)*
ComponentContext({required [Incoming](../../package-fuchsia_services_services/Incoming-class.md) svc, required [Outgoing](../../package-fuchsia_services_services/Outgoing-class.md) outgoing})
<p>This constructor is used by the modular test harness, but should not be
used elsewhere. <a href="../../package-fuchsia_services_services/ComponentContext/ComponentContext.create.md">ComponentContext.create()</a> and
<a href="../../package-fuchsia_services_services/ComponentContext/ComponentContext.createAndServe.md">ComponentContext.createAndServe()</a> should typically be used instead.</p>
## Implementation
```dart
ComponentContext({
required this.svc,
required this.outgoing,
});
```