optional top-level constant

Optional const optional

Marks a service implementation as optional. Optional services don't crash the dependency resolution if their dependencies are not met and instead just get skipped.

Implementation

const Optional optional = Optional();