Kernel constructor

Kernel({
  1. required IntentService intents,
  2. EventService? events,
  3. CommandService? commands,
  4. SharedStateService? states,
  5. ComponentService? components,
  6. PackageService? packages,
  7. ContextMenuService? contextMenus,
})

Implementation

Kernel ({
  required this.intents,
  EventService? events,
  CommandService? commands,
  SharedStateService? states,
  ComponentService? components,
  PackageService? packages,
  ContextMenuService? contextMenus,
}) {
  this.states = states ?? SharedStateService([]);
  this.commands = commands ?? CommandService([]);
  this.contextMenus = contextMenus ?? ContextMenuService([]);
  this.components = components ?? ComponentService([]);
  this.events = events ?? EventService([]);
  this.packages = packages ?? PackageService([]);

  DebuggerService('[ debug ]');
}