ComponentContext class

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

Constructors

ComponentContext ({required Incoming svc, required Outgoing outgoing})

This constructor is used by the modular test harness, but should not be used elsewhere. ComponentContext.create() and ComponentContext.createAndServe() should typically be used instead.

ComponentContext.create ()

Creates the component context. Users need to make sure that they call serve after they have finished adding all their public services. factory

ComponentContext.createAndServe ()

Creates a ComponentContext and immediately serves the outgoing. This method is useful for simple programs who do not have to do any complicated setup. factory

Properties

hashCode → int

The hash code for this object.
read-onlyinherited

outgoingOutgoing

Services and data exposed to other components.
final

runtimeType → Type

A representation of the runtime type of the object.
read-onlyinherited

svcIncoming

Services that are available to this component.
final

Methods

noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed.
inherited

toString() String

A string representation of this object.
inherited

Operators

operator ==(Object other) bool

The equality operator.
inherited