service property

Object? get service

The Hook can expose a service that will be used by the application without the need to create a new module.

The service can be accessed by the RequestContext object and they are treated as global services.

Implementation

Object? get service => null;