SFConfig class
Configuration centralisée pour l'application Inspirée du modèle nuxt.config.js
Constructors
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
-
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
Static Properties
- environment → String
-
Obtenir l'environnement courant
no setter
- isDevelopment → bool
-
Vérifier si nous sommes en environnement de développement
no setter
- isProduction → bool
-
Vérifier si nous sommes en environnement de production
no setter
Static Methods
-
get<
T> (String key, {T? defaultValue}) → T? - Accéder à une valeur de configuration
-
getSection(
String sectionPrefix) → Map< String, dynamic> - Accéder à une section de configuration
-
initialize(
{Map< String, dynamic> ? defaultConfig, String environment = 'dev'}) → Future<void> - Initialise la configuration avec les valeurs par défaut et .env