Flavor class Null safety

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.
read-onlyinherited
isAlpha bool
Check if the current flavor is the alpha flavor
read-only
isBeta bool
Check if the current flavor is the beta flavor
read-only
isDevelopment bool
Check if the current flavor is the development flavor
read-only
isProduction bool
Check if the current flavor is the production flavor
read-only
properties Map<String, dynamic>?
Extra properties to use for this flavor
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
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 non-existent 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

I Flavor
Get the instance of the current flavor configuration (short)
read-only
instance Flavor
Get the instance of the current flavor configuration
read-only