Flavor class
The Flavor configuration class
Constructors
-
Flavor.create(Environment environment, {String? name, Color? color, Map<
String, Object> ? properties}) - Create an instance of the flavor configuration
Properties
- color → Color?
-
The color to be used in the banner for this flavor
final
- environment → Environment
-
The environment for this flavor
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAlpha → bool
-
Check if the current flavor is the alpha flavor
no setter
- isBeta → bool
-
Check if the current flavor is the beta flavor
no setter
- isDevelopment → bool
-
Check if the current flavor is the development flavor
no setter
- isProduction → bool
-
Check if the current flavor is the production flavor
no setter
-
properties
→ Map<
String, dynamic> ? -
Extra properties to use for this flavor
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String?
-
The title to be used in the banner for this flavor
final
Methods
-
getBool(
String key) → bool? - Try to get the value of the properties as bool
-
getDouble(
String key) → double? - Try to get the value of the properties as double
-
getInt(
String key) → int? - Try to get the value of the properties as int
-
getObject(
String key) → Object? - Try to get the value of the properties as Object
-
getString(
String key) → String? - Try to get the value of the properties as String
-
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