AFConfig class

Accessor for values in xxx_config.g.dart, accessible via AFibD.config.

Constructors

AFConfig()

Properties

absoluteBaseDate DateTime
no setter
absoluteBaseYear int
no setter
all Iterable<AFConfigurationItem>
no setter
appNamespace String
no setter
baseSimulatedLatency int
no setter
enableGenerateAugment bool
no setter
environment AFEnvironment
Returns a text-version of the current AFConfigConstants.environmentKey value.
no setter
favoriteTestIds List<AFBaseTestID>?
getter/setter pair
fileHeader String
no setter
formFactorWithOrientation AFFormFactorSize
no setter
generateBeginnerComments bool
no setter
generateUIPrototypes bool
no setter
hashCode int
The hash code for this object.
no setterinherited
isLibraryCommand bool
getter/setter pair
isProduction bool
no setter
isPrototypeEnvironment bool
no setter
isPrototypeMode bool
True if we are in prototype mode
no setter
isTestContext bool
True if we are inside a running test.
no setter
isWidgetTesterContext bool
no setter
logsEnabled List<String>
True if AFib should display internal log statements.
no setter
packageName String
no setter
recentTests List<String>
no setter
requiresPrototypeData bool
Returns true if our current mode requires prototype data.
no setter
requiresTestData bool
True if the current mode requires test data.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startInDarkMode bool
no setter
startupPrototypeId AFID
no setter
startupScreenPrototype AFPrototypeID?
getter/setter pair
startupStateTestId AFStateTestID?
getter/setter pair
startupWireframe AFPrototypeID?
getter/setter pair
strictTranslationMode bool
no setter
values Map<AFConfigurationItem, dynamic>
final

Methods

boolFor(AFConfigurationItem entry) bool
Casts the value for entry to a boolean and returns it.
establishDefaults() → void
intFor(AFConfigurationItem entry) int
Casts the value for entry to a boolean and returns it.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putInternal(AFConfigurationItem entry, dynamic value) → void
This should only be used for validated values of the correct type, you should use setValue in most cases.
setFavoriteTests(List<AFBaseTestID> testIds) → void
setIsLibraryCommand({required bool isLib}) → void
setStartupScreenPrototype(AFPrototypeID id) → void
setStartupStateTest(AFStateTestID testId) → void
setStartupWireframe(AFPrototypeID id) → void
setValue(String key, dynamic value) → void
Performs validation and type conversion on the value before placing it in our list of values.
stringFor(AFConfigurationItem entry) String
Casts the value for entry to a string and returns it.
stringListFor(AFConfigurationItem entry) List<String>
toString() String
A string representation of this object.
inherited
valueFor(AFConfigurationItem entry) → dynamic

Operators

operator ==(Object other) bool
The equality operator.
inherited