ConfigurationManager class

Manages all configuration-related operations for asset generation.

Handles loading and merging configuration from multiple sources:

  • morpheme.yaml (primary configuration)
  • pubspec.yaml (Flutter asset definitions)
  • Command-line arguments (flavor selection)

Provides a centralized point for configuration validation and access.

Constructors

ConfigurationManager()
Creates a new ConfigurationManager instance.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

loadAssetConfiguration({String? morphemeYamlPath, String? flavor}) AssetConfig
Loads the complete asset configuration from morpheme.yaml and command arguments.
loadPubspecAssets(AssetConfig config) List<String>
Loads and validates the pubspec.yaml configuration.
mergeFlavorAssets(AssetConfig config) ValidationResult
Merges flavor-specific assets with the main assets directory.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validateConfigurationPaths(AssetConfig config) ValidationResult
Validates that all required configuration paths exist and are accessible.

Operators

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