BloomConfig class
Strongly typed configuration model mapping directly to bloom.yaml.
Defines project metadata, platform SDK versions, feature toggles, environment files, deep linking, build flavors, and deployment options.
Example:
const yamlContent = '''
name: my_bloom_app
version: 1.0.0
build_number: 42
mode: managed
''';
final config = BloomConfig.fromYaml(yamlContent);
print(config.name); // 'my_bloom_app'
Constructors
-
BloomConfig({int schema = 1, String name = 'bloom_app', String version = '0.1.0', String buildNumber = '1', String description = '', String mode = 'managed', BloomPlatforms platforms = const BloomPlatforms(), BloomFeatures features = const BloomFeatures(), BloomDeepLinksConfig deepLinks = const BloomDeepLinksConfig(), BloomDeploymentConfig deployment = const BloomDeploymentConfig(), List<
String> envFiles = const ['.env', '.env.local'], Map<String, BloomFlavorConfig> flavors = const {}, Map<String, dynamic> plugins = const {}, Map<String, dynamic> custom = const {}}) -
Creates a BloomConfig instance with default values.
const
- BloomConfig.fromMap(Map map)
-
Constructs a BloomConfig from a configuration
map.factory - BloomConfig.fromYaml(String yamlString)
-
Parses a BloomConfig from a raw YAML string.
factory
Properties
- buildNumber → String
-
Build number string (e.g.
'1').final -
custom
→ Map<
String, dynamic> -
Additional custom user configuration parameters.
final
- deepLinks → BloomDeepLinksConfig
-
Deep link URL routing configuration.
final
- deployment → BloomDeploymentConfig
-
Deployment and OTA update configuration.
final
- description → String
-
Brief description of the application.
final
-
envFiles
→ List<
String> -
Ordered list of environment
.envfiles to load on boot.final - features → BloomFeatures
-
Built-in framework features toggles.
final
-
flavors
→ Map<
String, BloomFlavorConfig> -
Named build flavor configurations.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mode → String
-
Development execution mode:
'managed'or'bare'.final - name → String
-
Application name identifier (e.g.
'bloom_app').final - platforms → BloomPlatforms
-
Platform-specific build configuration settings.
final
-
plugins
→ Map<
String, dynamic> -
Registered native plugins configurations.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schema → int
-
Schema format version number (defaults to 1).
final
- version → String
-
Application version string (e.g.
'1.0.0').final
Methods
-
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