registerService method
void
registerService({})
Register a service with this module as owner
Implementation
void registerService({
required String name,
required Function service,
List<String> allowedCallers = const [],
}) {
services.registerService(
name: name,
ownerModuleId: moduleId,
service: service,
allowedCallers: allowedCallers,
);
}