ZenDependencyNotFoundException constructor

ZenDependencyNotFoundException({
  1. required String typeName,
  2. required String scopeName,
  3. String? tag,
})

Implementation

ZenDependencyNotFoundException({
  required String typeName,
  required String scopeName,
  String? tag,
}) : super(
        'Dependency not found',
        context: {
          'Type': typeName,
          'Scope': scopeName,
          if (tag != null) 'Tag': tag,
        },
        suggestion: tag != null
            ? 'Zen.put($typeName(), tag: \'$tag\');'
            : 'Zen.put($typeName());',
        docLink: 'https://github.com/sdegenaar/zenify#dependency-injection',
      );