AFCurrentStateContext class

Implemented types
Implementers

Constructors

AFCurrentStateContext({required AFDispatcher dispatcher, required AFConceptualStore targetStore})

Properties

accessActiveScreenId AFScreenID
no setterinherited
accessCurrentTime AFTimeState
no setterinherited
accessPlatformInfo AFAppPlatformInfoState
no setterinherited
accessPublicState AFPublicState
no setterinherited
accessStreamPublicStateChanges Stream<AFPublicStateChange>
no setterinherited
contextNullCheck BuildContext
no setterinherited
dispatcher AFDispatcher
final
flutterContext BuildContext?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isDemoMode bool
no setterinherited
isUIEnabled bool
no setterinherited
publicState AFPublicState
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetStore AFConceptualStore
final

Methods

accessActiveRouteParamOfType<TRouteParam extends AFRouteParam>({AFRouteLocation routeLocation = AFRouteLocation.screenHierarchy}) → TRouteParam?
Expectes to find exactly ione param of the specified type.
inherited
accessActiveRouteParamsOfType<TRouteParam extends AFRouteParam>({AFRouteLocation routeLocation = AFRouteLocation.screenHierarchy}) List<TRouteParam>
Find all route params that have the specified type.
inherited
accessComponentState<TState extends AFComponentState>() → TState
inherited
accessCurrentState(AFAccessCurrentStateDelegate delegate) → void
Synchronously accesses the current public state, providing it to a callback.
inherited
accessGlobalRouteParam<TRouteParam>(AFID id) → TRouteParam?
inherited
accessLPI<TLPI extends AFLibraryProgrammingInterface>(AFLibraryProgrammingInterfaceID id) → TLPI
inherited
accessRouteParam<TRouteParam extends AFRouteParam>(AFRouteParamRef ref) → TRouteParam?
inherited
accessRouteParamSegment(AFRouteParamRef ref) AFRouteSegment?
inherited
accessScreenRouteSegment(AFScreenID screen, {AFRouteLocation routeLocation = AFRouteLocation.screenHierarchy}) AFRouteSegment?
inherited
dispatch(dynamic action) → void
executeCompositeQuery(AFCompositeQuery query) → void
inherited
executeDeferredCallback(AFID uniqueQueryId, Duration duration, AFOnResponseDelegate<AFUnused> callback) → void
inherited
executeDeferredQuery(AFDeferredQuery query) → void
A utility which delays for the specified time, then updates the resulting code.
inherited
executeEnterDemoMode({required AFStateTestID stateTestId, required AFMergePublicStateDelegate mergePublicState}) → void
inherited
executeExitDemoMode({required AFMergePublicStateDelegate mergePublicState}) → void
inherited
executeIsolateListenerQuery(AFIsolateListenerQuery query) → void
inherited
executeListenerQuery(AFAsyncListenerQuery query) → void
Dispatch an AFAsyncListenerQuery, which establishes a channel that recieves results on an ongoing basis (e.g. via a websocket).
inherited
executePeriodicQuery(AFPeriodicQuery query) → void
inherited
executeQuery(AFAsyncQuery query) → void
A utility which dispatches an asynchronous query.
inherited
executeResetToInitialState() → void
Resets your application state to it's initial state (see your static initialState method). This is often called as part of a signout process.
inherited
executeShutdownAllActiveQueries() → void
Shuts down all existing listener and deferred queries. Often called as part of a signout process.
inherited
executeShutdownListenerQuery<TQuery extends AFAsyncListenerQuery>({AFID? id}) → void
inherited
executeStandardAFibStartup({required Duration updateFrequency, required AFTimeStateUpdateSpecificity defaultUpdateSpecificity}) → void
inherited
executeStartTimeListenerQuery(AFTimeState baseTime) → void
inherited
inherited
inherited
inherited
inherited
inherited
inherited
inherited
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showBottomSheet({required AFNavigatePushAction navigate, Color? backgroundColor, double? elevation, ShapeBorder? shape, Clip? clipBehavior}) → void
Shows a bottom sheet
inherited
showDialogAFib<TReturn extends Object?>({required AFNavigatePushAction navigate, AFReturnValueDelegate<TReturn>? onReturn, bool barrierDismissible = true, Color? barrierColor, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings? routeSettings, AFAsyncQuery? executeBefore, AFAsyncQuery? executeDuring}) → void
Open a dialog with the specified screen id and param
inherited
showDialogChoice({AFUIStandardChoiceDialogIcon icon = AFUIStandardChoiceDialogIcon.question, required AFRichTextBuilder title, required AFRichTextBuilder? body, required List<String> buttonTitles, required void onReturn(int?)?}) → void
inherited
showDialogChoiceText({required Object themeOrId, AFUIStandardChoiceDialogIcon icon = AFUIStandardChoiceDialogIcon.question, required Object title, Object? body, required List<String>? buttonTitles, void onReturn(int)?}) → void
inherited
showDialogErrorText({required Object themeOrId, required Object title, Object? body, List<String>? buttonTitles, void onReturn(int)?}) → void
inherited
showDialogInfoText({required Object themeOrId, required Object title, Object? body, List<String>? buttonTitles, void onReturn(int)?}) → void
inherited
showDialogWarningText({required Object themeOrId, required Object title, Object? body, List<String>? buttonTitles, void onReturn(int)?}) → void
inherited
showInAppNotification({VoidCallback? onAction, AFRichTextBuilder? actionText, required Color colorBackground, required Color colorForeground, required AFRichTextBuilder title, AFRichTextBuilder? body, Duration? duration, NotificationPosition position = NotificationPosition.top}) → void
inherited
showInAppNotificationText({required Object themeOrId, VoidCallback? onAction, Object? actionText, Color? colorBackground, Color? colorForeground, required Object title, Object? body, Duration? duration, NotificationPosition position = NotificationPosition.top}) → void
inherited
showLeftSideDrawer({AFNavigatePushAction? navigate}) → void
Open the drawer that you specified for your Scaffold.
inherited
showModalBottomSheetAFib<TReturn extends Object?>({required AFNavigatePushAction navigate, AFReturnValueDelegate<TReturn>? onReturn, Color? backgroundColor, double? elevation, AFAsyncQuery? executeBefore, AFAsyncQuery? executeDuring, ShapeBorder? shape, Clip? clipBehavior, Color? barrierColor, bool isScrollControlled = false, bool useRootNavigator = false, bool isDismissible = true, bool enableDrag = true, RouteSettings? routeSettings}) → void
Show a modal bottom sheet.
inherited
showRightSideDrawer({required AFNavigatePushAction navigate}) → void
Open the end drawer that you specified for your Scaffold.
inherited
showSnackbar(SnackBar snackbar) → void
Show a snackbar.
inherited
showSnackbarText({required Object themeOrId, required Object text, Duration duration = const Duration(seconds: 2)}) → void
Show a snackbar.
inherited
toString() String
A string representation of this object.
inherited
updateComponentRootStateMany<TState extends AFComponentState>(List<Object> toIntegrate) → void
Dispatches an action that updates several blaues in the app state area associated with the TState type parameter.
inherited
updateComponentRootStateOne<TState extends AFComponentState>(Object toIntegrate) → void
Dispatches an action that updates a single value in the app state area associated with the TState type parameter.
inherited
updateGlobalRouteParam(AFRouteParam param) → void
inherited
updateHierarchyRouteParam(AFRouteParam param) → void
Dispatches an action that updates the route parameter for the specified screen.
inherited
updateRouteParam(AFRouteParam param) → void
Dispatches an action that updates the route parameter for the specified screen.
inherited

Operators

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