keyComands top-level property

List<Command> keyComands
final

Implementation

final List<Command> keyComands = [
  Command(
    prefix: '@',
    command: 'import',
    callback: (DartDeclaration self, dynamic testSubject, {required String key, dynamic value}) {
      self.addImport(value);
      return self;
    },
  ),
  Command(
    prefix: '@',
    command: 'extends',
    callback: (DartDeclaration self, dynamic testSubject, {required String key, dynamic value}) {
      self.extendsClass = value as String;
      return self;
    },
  ),
  Command(
    prefix: '@',
    command: 'mixin',
    callback: (DartDeclaration self, dynamic testSubject, {required String key, dynamic value}) {
      self.mixinClass = value as String;
      return self;
    },
  ),
  Command(
    prefix: '@',
    command: 'ignore',
    callback: (DartDeclaration self, dynamic testSubject, {required String key, dynamic value}) {
      self.setIgnored();
      return defaultCommandCallback(self, testSubject, key: key, value: value);
    },
  ),
  Command(
    prefix: '@',
    command: 'override',
    callback: (DartDeclaration self, dynamic testSubject, {required String key, dynamic value}) {
      self.enableOverridden();
      return defaultCommandCallback(self, testSubject, key: key, value: value);
    },
  ),
  Command(
    prefix: '@',
    command: '_',
    callback: (DartDeclaration self, dynamic testSubject, {required String key, dynamic value}) {
      self.type = key.substring(2);
      self.name = value as String;
      return self;
    },
  ),
  Command(
    type: String,
    callback: defaultCommandCallback,
  ),
];