BloomAppConfig class

Strongly typed application configuration model for bloom.config.dart.

Serves as the primary type-safe entry point for configuring Bloom applications in Dart code, supporting conversion to and from the internal BloomConfig YAML representation.

Example:

final appConfig = BloomAppConfig(
  name: 'my_app',
  version: '1.0.0',
  mode: NativeMode.managed,
  platforms: const PlatformsConfig(
    android: AndroidPlatform(package: 'com.example.myapp'),
    ios: IosPlatform(bundleIdentifier: 'com.example.myapp'),
  ),
);

Constructors

BloomAppConfig({int schema = 1, required String name, String version = '0.1.0', String buildNumber = '1', String description = '', NativeMode mode = NativeMode.managed, PlatformsConfig platforms = const PlatformsConfig(), List<BloomPlugin> plugins = const [], List<String> envFiles = const ['.env', '.env.local'], Map<String, dynamic> featureFlags = const {}, Map<String, dynamic> custom = const {}})
Creates a BloomAppConfig instance.
const
BloomAppConfig.fromBloomConfig(BloomConfig config)
Converts from an internal BloomConfig to a typed BloomAppConfig.
factory

Properties

buildNumber String
Build number string (defaults to '1').
final
custom Map<String, dynamic>
Additional custom configuration properties.
final
description String
Brief human-readable description of the application.
final
envFiles List<String>
List of environment .env files loaded on application boot.
final
featureFlags Map<String, dynamic>
Initial feature flag key-value map.
final
hashCode int
The hash code for this object.
no setterinherited
mode NativeMode
Native build execution mode (NativeMode.managed or NativeMode.bare).
final
name String
Application name identifier.
final
platforms PlatformsConfig
Platform build target settings for Android, iOS, and Web.
final
plugins List<BloomPlugin>
List of registered Bloom plugins.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schema int
Schema version number (defaults to 1).
final
version String
Application version string (defaults to '0.1.0').
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBloomConfig() BloomConfig
Converts this typed app configuration to the internal BloomConfig model.
toJson() Map<String, dynamic>
Serializes this configuration to a JSON-compatible map.
toString() String
A string representation of this object.
inherited

Operators

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