BloomFlavorConfig class

Configuration for a specific application build flavor (e.g. staging, production).

Flavors define environment-specific overrides for application name, bundle/package ID, environment files, and custom configuration parameters.

Example:

final stagingFlavor = BloomFlavorConfig(
  name: 'staging',
  appName: 'Bloom App (Staging)',
  appId: 'com.example.bloom.staging',
  envFile: '.env.staging',
  custom: {'apiUrl': 'https://staging.api.example.com'},
);

Constructors

BloomFlavorConfig({required String name, String? appName, String? appId, String? envFile, Map<String, dynamic> custom = const {}})
Creates a BloomFlavorConfig instance.
const
BloomFlavorConfig.fromMap(String name, Map map)
Constructs a BloomFlavorConfig from a parsed map and name identifier.
factory

Properties

appId String?
Application bundle / package ID override for this flavor (e.g. 'com.example.app.staging').
final
appName String?
Display name override for this flavor displayed on user devices.
final
custom Map<String, dynamic>
Custom flavor-specific configuration key-value properties.
final
envFile String?
Path to the environment .env file loaded for this flavor (e.g. '.env.staging').
final
hashCode int
The hash code for this object.
no setterinherited
name String
Unique flavor name identifier (e.g. 'staging', 'production').
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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