ExtractorConfig class
Configuration class for the Flutter AI i18n Extractor
Constructors
-
ExtractorConfig({required String arbDir, required String templateArbFile, required String outputClass, required String aiProvider, required String apiKey, required String model, required List<
String> languages, required List<String> scanPaths, required List<String> excludePatterns, required String keyNamingConvention, required int maxKeyLength, required bool contextAwareNaming, required bool dryRun, required bool backupFiles, required bool preserveComments, required bool includeSourceInfo}) -
const
- ExtractorConfig.defaultConfig()
-
Creates a default configuration
factory
Properties
- aiProvider → String
-
final
- apiKey → String
-
final
- arbDir → String
-
final
- backupFiles → bool
-
final
- contextAwareNaming → bool
-
final
- dryRun → bool
-
final
-
excludePatterns
→ List<
String> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- includeSourceInfo → bool
-
final
- keyNamingConvention → String
-
final
- l10n → L10nConfig
-
no setter
-
languages
→ List<
String> -
final
- maxKeyLength → int
-
final
- model → String
-
final
- outputClass → String
-
final
- preserveComments → bool
-
final
- processing → ProcessingConfig
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scanPaths
→ List<
String> -
final
- templateArbFile → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts the configuration to a Map for YAML serialization
-
toString(
) → String -
A string representation of this object.
override
-
validate(
) → void - Validates the configuration
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromFile(
String filePath) → Future< ExtractorConfig> - Loads configuration from a YAML file