EagleEyeRepositoryImpl class

FileHelper and JsonConverter to interact with the file system and configuration data.

This class is responsible for:

  • Locating and parsing the eagle_eye_config.json file.
  • Fetching all Dart source files from the lib/ folder.
  • Extracting the application name for dependency checks.
Inheritance

Constructors

EagleEyeRepositoryImpl({required FileHelper fileHelper, required JsonConverter jsonConverter})
Creates a new EagleEyeRepositoryImpl instance.

Properties

fileHelper FileHelper
Helper for interacting with the file system.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
jsonConverter JsonConverter
Helper for converting JSON data into Dart objects.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

allDartFiles() List<File>
Returns all Dart files found within the project’s lib/ directory.
override
getAndCheckIfConfigFileExists() Future<EagleEyeConfig>
Retrieves and parses the Eagle Eye configuration file if it exists in the project root.
override
getApplicationName() String
Returns the application’s name as defined in the project structure.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

configFileName → const String
The expected name of the Eagle Eye configuration file.
libsFolderName → const String
The default folder containing Dart source code.