FlavorConfig class

This is the main class that is used to define the settings for a Flavor name is the name of the flavor (i.e. DEV, TEST,PROD) isProduction is a flag to determine if the flavor is a production flavor(tis means no banner is displayed) color is the color to use for the banner attributes one or more attrbutes that are set up for each flavor

Constructors

FlavorConfig.new({required String name, bool isProduction = false, Color color = Colors.brown, required Map<String, dynamic> attributes})

Properties

attributes Map<String, dynamic>
A set of mapped attributes that define the settings for the Flavor
final
Return the FlavourBannerConfig banner data that is created when the config is setup
no setter
color Color
The Color used for the display Flavor banner (defaults to brown)
final
hashCode int
The hash code for this object.
no setterinherited
isProduction bool
a bool flag that indicates if the Flavor is a production one(defaults to false)
final
name String
a String that represents the name of the flavor being created
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