ComponentContext.create constructor

*[<Null safety>](https://dart.dev/null-safety)*

ComponentContext.create()

Implementation

factory ComponentContext.create() {
  if (_componentContext != null) {
    throw Exception(
        'Attempted to construct ComponentContext multiple times. Ensure that the existing ComponentContext is reused instead of constructing multiple instances.');
  }
  return _componentContext = ComponentContext(
    svc: Platform.isFuchsia ? Incoming.fromSvcPath() : Incoming(),
    outgoing: Outgoing(),
  );
}