Google is committed to advancing racial equity for Black communities. See how.

StartupContext.fromStartupInfo constructor

*<Null safety>*


Creates a startup context from the process startup info.

Returns a cached StartupContext instance associated with the currently running component if one was already created.

Authors should use this method of obtaining the StartupContext instead of instantiating one on their own as it will bind and connect to all the underlying services for them.


factory StartupContext.fromStartupInfo() {
  return _startupContext ??= StartupContextImpl.fromStartupInfo();