AFibGlobalState class

Constructors

AFibGlobalState({required AFAppExtensionContext appContext, required AFConceptualStore activeConceptualStore})

Properties

activeConceptualStore AFConceptualStore
getter/setter pair
activeStageChangeStream Stream<AFPublicStateChange>
no setter
activeStateChangeController StreamController<AFPublicStateChange>
no setter
actualStartupScreenId AFScreenID?
no setter
allScreenTests List<AFScreenPrototype>
no setter
appContext AFAppExtensionContext
final
backgroundStore AFibStoreStackEntry?
getter/setter pair
bottomSheetTests AFBottomSheetTests
no setter
coreDefinitions AFCoreDefinitionContext
final
createApp AFCreateAFAppDelegate?
no setter
currentFlutterContext BuildContext?
no setter
demoModeTest AFStateTestContext?
getter/setter pair
dialogTests AFDialogTests
no setter
drawerTests AFDrawerTests
no setter
effectiveScreenMap AFScreenMap?
The screen map to use given the mode we are running in (its different in prototype mode, for example)
no setter
effectiveStartupScreenId AFScreenID
returns the screen id of the startup screen.
no setter
forcedStartupScreen AFScreenID?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
internalOnlyActive AFibStoreStackEntry
no setter
internalOnlyActiveDispatcher AFDispatcher
WARNING: You should never call this. See internalOnlyStore for details.
no setter
internalOnlyActiveStore → AFStore
The redux store, which contains the application state, NOT FOR PUBLIC USE.
no setter
internalOnlyScreens Map<AFScreenID, AFibTestOnlyScreenElement>
final
isDemoMode bool
no setter
isInteractiveStateTestContext bool
getter/setter pair
isPrototypeMode bool
no setter
getter/setter pair
final
preDemoModeRoute AFRouteState?
getter/setter pair
primaryUITests AFLibraryTestHolder
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenMap AFScreenMap
no setter
screenTests AFSingleScreenTests
Retrieves screen/data pairings used for prototyping and for screen-specific testing.
no setter
sharedTestContext AFSharedTestExtensionContext
final
startupRouteParamFactory AFCreateRouteParamDelegate?
Returns the route parameter used by the startup screen.
no setter
stateStack List<AFibStateStackEntry>
final
stateTests AFStateTests
no setter
testData AFDefineTestDataContext
Mapping from string ids to builders for specific screens for the real app.
no setter
testDelayOnNewScreen Duration
no setter
testMissingTranslations AFTestMissingTranslations
final
testOnlyActivePrototypeId AFPrototypeID?
no setter
testOnlyActiveScreenId AFScreenID
no setter
testOnlyDialogCompleters Map<AFScreenID, void Function(dynamic)>
final
testOnlyIsInWorkflowTest bool
no setter
testOnlyMostRecentScreen AFibTestOnlyScreenElement?
getter/setter pair
testOnlyRecentActions List<AFActionWithKey>
Used internally to get the most recent action with the specified key.
no setter
testOnlyScreenBuildContextMap Map<AFScreenID, BuildContext>
final
testOnlyScreenSPIMap Map<AFScreenID, AFStateProgrammingInterface<AFComponentState, AFBuildContext<AFFlexibleStateView, AFRouteParam>, AFFunctionalTheme>>
final
testOnlyShowUIReturn Map<AFScreenID, dynamic>
final
thirdPartyLibraries Iterable<AFCoreLibraryExtensionContext>
no setter
thirdPartyUITests Map<AFLibraryID, AFLibraryTestHolder>
final
uiStore AFibStoreStackEntry?
getter/setter pair
unitTests AFUnitTests
Retrieves unit/calculation tests
no setter
widgetsBindingObserver AFWidgetsBindingObserver
final
widgetTests AFWidgetTests
Retrieves widget/data pairings for connected and unconnected widget tests.
no setter
wireframes AFWireframes
final
withinMiddewareNavigation bool
no setter
workflowTests AFWorkflowStateTests
Retrieves tests which pair an initial state, and then multiple screen/state tests to produce a higher-level multi-screen test.
no setter
workflowTestsForStateTests AFWorkflowStateTests
no setter

Methods

createInitialComponentStates() AFComponentStates
Returns a function that creates the initial applications state, used to reset the state.
createLPI(AFLibraryProgrammingInterfaceID id, AFDispatcher dispatcher, AFConceptualStore targetStore) AFLibraryProgrammingInterface
createStartupQueries() List<AFAsyncQuery>
createStore({required AFConceptualStore conceptual, required bool enableUIRouting, AFPublicState? publicState}) AFibStoreStackEntry
dispatchLifecycleActions(AFDispatcher dispatcher, AppLifecycleState lifecycle) → void
Used internally by the framework.
dispatchStartupQueries(AFDispatcher dispatcher) → void
Used internally by the framework.
doMiddlewareNavigation(dynamic underHere(NavigatorState)) bool
findComponentStateCreator<TState extends AFComponentState>() AFCreateComponentStateDelegate?
findScreenTestById(AFBaseTestID testId) AFScreenPrototype?
findScreenTestByTokens(List<String> tokens) List<AFScreenPrototype>
findSPICreatorOverride<TSPI extends AFStateProgrammingInterface<AFComponentState, AFBuildContext<AFFlexibleStateView, AFRouteParam>, AFFunctionalTheme>, TBuildContext extends AFBuildContext<AFFlexibleStateView, AFRouteParam>, TTheme extends AFFunctionalTheme>() AFCreateSPIDelegate<TSPI, TBuildContext, TTheme>?
findTestsForAreas(List<String> areas) List<AFScreenPrototype>
finishAsyncWithError(AFFinishQueryErrorContext context) → void
initialize() → void
initializeForDemoMode() → void
initializeTests() → void
initializeThemeState({AFComponentStates? components}) AFThemeState
internalOnlyDispatcher(AFConceptualStore conceptual) AFDispatcher
internalOnlyFindScreen(AFScreenID screenId) AFibTestOnlyScreenElement?
Used internally in tests to find widgets on the screen. Not for public use.
internalOnlyStore(AFConceptualStore conceptual) → AFStore
internalOnlyStoreEntry(AFConceptualStore conceptual) AFibStoreStackEntry
libraryTests(AFLibraryID id) AFLibraryTestHolder?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onQuerySuccess(AFAsyncQuery query, AFFinishQuerySuccessContext successContext) → void
Called internally when a query finishes successfully.
prototypeIdForStartupId(AFID startupId) AFPrototypeID
pushState({required String name, AFPublicState? publicState, AFPrivateState? privateState}) → void
registerScreen(AFScreenID screenId, BuildContext screenElement, AFConnectedUIBase<AFComponentState, AFFunctionalTheme, AFFlexibleStateView, AFRouteParam, AFStateProgrammingInterface<AFComponentState, AFBuildContext<AFFlexibleStateView, AFRouteParam>, AFFunctionalTheme>> source) AFibTestOnlyScreenElement
Used internally in tests to find widgets on the screen. Not for public use.
resetTestScreens() → void
Used internally to reset widget tracking between tests.
setActiveStore(AFConceptualStore conceptual) → void
setPreDemoModeRoute(AFRouteState route) → void
setPrototypeScreenMap(AFScreenMap screens) → void
Do not call this method, AFApp.initialize will do it for you.
setTestOnlyShowBuildContext(AFUIType uiType, BuildContext? ctx) → void
stateChangeStream(AFConceptualStore conceptual) Stream<AFPublicStateChange>
swapActiveAndBackgroundStores({required AFMergePublicStateDelegate mergePublicState}) → void
testEnabledLocales(AFConfig config) List<Locale>
testOnlyClearRecentActions() → void
testOnlyRegisterRegisterAction(AFActionWithKey action) → void
Used internally in tests to keep track of recently dispatched actions so that we can verify their contents.
testOnlySetForcedStartupScreen(AFScreenID id) → void
testOnlySetForcedStartupScreen
testOnlyShowBuildContext(AFUIType uiType) BuildContext?
testOnlyShowUIRegisterReturn(AFScreenID screen, dynamic result) → void
testOnlySimulateCloseDialogOrSheet<TResult>(AFScreenID screenId, TResult result) → void
testOnlySimulateShowDialogOrSheet<TResult>(AFScreenID screenId, dynamic onReturn(dynamic)) → void
testOnlyVerifyActiveScreen(AFScreenID? screenId) → void
testRegisterMissingTranslations(Locale locale, dynamic textOrId) → void
toString() String
A string representation of this object.
inherited
updateFundamentalThemeData(ThemeData themeData) → void
This is called internally by AFib and should not really exist.

Operators

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