FlavorConfig class

Constructors

FlavorConfig({required String flavorName, bool bannerEnabled = true, Color bannerColor = Colors.pink, Color textColor = Colors.white, required Map<String, dynamic> values})
factory

Properties

bannerColor Color
The color of the banner if enabled.
final
bannerEnabled bool
Determines if the banner should be shown.
final
flavorName String
The name of the flavor.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textColor Color
The color of the text inside the banner if enabled.
final
values Map<String, dynamic>
The values that belong to the flavor.
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

Static Properties

instance FlavorConfig
no setter

Static Methods

getBannerColor() Color
Gets the color of the banner if enabled.
getFlavorName() String
Gets the name of the flavor.
getTextColor() Color
Gets the color of the text inside the banner if enabled.
getValue(String key) → dynamic
Gets a value given a key.
getValues() Map<String, dynamic>
Gets the values that belong to the flavor.
isBannerEnabled() bool
Returns true if the banner will be shown.