RawConfig class
represents a build.yaml or a slang.yaml file
- Available extensions
Constructors
-
RawConfig({required I18nLocale baseLocale, required FallbackStrategy fallbackStrategy, required String? inputDirectory, required String inputFilePattern, required String? outputDirectory, required String outputFileName, required OutputFormat outputFormat, required bool localeHandling, required bool flutterIntegration, required bool namespaces, required String translateVar, required String enumName, required String className, required TranslationClassVisibility translationClassVisibility, required CaseStyle? keyCase, required CaseStyle? keyMapCase, required CaseStyle? paramCase, required StringInterpolation stringInterpolation, required bool renderFlatMap, required bool translationOverrides, required bool renderTimestamp, required bool renderStatistics, required List<
String> maps, required PluralAuto pluralAuto, required String pluralParameter, required List<String> pluralCardinal, required List<String> pluralOrdinal, required List<ContextType> contexts, required List<InterfaceConfig> interfaces, required ObfuscationConfig obfuscation, required List<String> imports, required Map<String, dynamic> rawMap})
Properties
- baseLocale → I18nLocale
-
final
- className → String
-
final
-
contexts
→ List<
ContextType> -
final
- enumName → String
-
final
- fallbackStrategy → FallbackStrategy
-
final
- fileType → FileType
-
final
- flutterIntegration → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
imports
→ List<
String> -
final
- inputDirectory → String?
-
final
- inputFilePattern → String
-
final
-
interfaces
→ List<
InterfaceConfig> -
final
- keyCase → CaseStyle?
-
final
- keyMapCase → CaseStyle?
-
final
- localeHandling → bool
-
final
-
maps
→ List<
String> -
final
- namespaces → bool
-
final
- obfuscation → ObfuscationConfig
-
final
- outputDirectory → String?
-
final
- outputFileName → String
-
final
- outputFormat → OutputFormat
-
final
- paramCase → CaseStyle?
-
final
- pluralAuto → PluralAuto
-
final
-
pluralCardinal
→ List<
String> -
final
-
pluralOrdinal
→ List<
String> -
final
- pluralParameter → String
-
final
-
rawMap
→ Map<
String, dynamic> -
Used by external tools to access the raw config. (e.g. slang_gpt)
final
- renderFlatMap → bool
-
final
- renderStatistics → bool
-
final
- renderTimestamp → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringInterpolation → StringInterpolation
-
final
- translateVar → String
-
final
- translationClassVisibility → TranslationClassVisibility
-
final
- translationOverrides → bool
-
final
Methods
-
copyWith(
{I18nLocale? baseLocale, FallbackStrategy? fallbackStrategy, String? inputFilePattern, String? outputFileName, OutputFormat? outputFormat, bool? localeHandling, bool? flutterIntegration, bool? namespaces, TranslationClassVisibility? translationClassVisibility, CaseStyle? keyCase, CaseStyle? keyMapCase, bool? renderFlatMap, bool? translationOverrides, bool? renderTimestamp, bool? renderStatistics, List< String> ? maps, PluralAuto? pluralAuto, List<String> ? pluralCardinal, List<String> ? pluralOrdinal, List<ContextType> ? contexts, List<InterfaceConfig> ? interfaces, ObfuscationConfig? obfuscation}) → RawConfig -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
printConfig(
) → void -
toString(
) → String -
A string representation of this object.
inherited
-
validate(
) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- defaultConfig → RawConfig
-
final
- defaultLocale → I18nLocale
-
final
- defaultObfuscationConfig → ObfuscationConfig
-
final
Constants
- defaultBaseLocale → const String
-
defaultCardinal
→ const List<
String> - defaultClassName → const String
-
defaultContexts
→ const List<
ContextType> - defaultEnumName → const String
- defaultFallbackStrategy → const FallbackStrategy
- defaultFlutterIntegration → const bool
-
defaultImports
→ const List<
String> - defaultInputDirectory → const String?
- defaultInputFilePattern → const String
-
defaultInterfaces
→ const List<
InterfaceConfig> - defaultKeyCase → const CaseStyle?
- defaultKeyMapCase → const CaseStyle?
- defaultLocaleHandling → const bool
-
defaultMaps
→ const List<
String> - defaultNamespaces → const bool
-
defaultOrdinal
→ const List<
String> - defaultOutputDirectory → const String?
- defaultOutputFileName → const String
- defaultOutputFormat → const OutputFormat
- defaultParamCase → const CaseStyle?
- defaultPluralAuto → const PluralAuto
- defaultPluralParameter → const String
- defaultRenderFlatMap → const bool
- defaultRenderStatistics → const bool
- defaultRenderTimestamp → const bool
- defaultStringInterpolation → const StringInterpolation
- defaultTranslateVar → const String
- defaultTranslationClassVisibility → const TranslationClassVisibility
- defaultTranslationOverrides → const bool