commands property Null safety

CommandServiceContract commands

Implementation

CommandServiceContract get commands => ioc.services.entries
  .firstWhere((service) => service.key.toString() == 'CommandService')
  .value as CommandServiceContract;