InjectableGenerator constructor

InjectableGenerator(
  1. Map options
)

Implementation

InjectableGenerator(Map options) {
  _autoRegister = options['auto_register'] ?? false;
  if (_autoRegister) {
    if (options['class_name_pattern'] != null) {
      _classNameMatcher = RegExp(options['class_name_pattern']);
    }
    if (options['file_name_pattern'] != null) {
      _fileNameMatcher = RegExp(options['file_name_pattern']);
    }
  }
}