AFSIBuildContext<TStateView extends AFFlexibleStateView, TRouteParam extends AFRouteParam> class
Constructors
-
AFSIBuildContext.new(AFStandardBuildContextData standard, TStateView stateView, TRouteParam routeParam, AFRouteSegmentChildren? children)
-
Methods
-
accessAppPlatformInfo()
→ AFAppPlatformInfoState
-
Access platform-related info like you app versions, and what OS you are running on.
inherited
-
accessChildParam<TChildRouteParam extends AFRouteParam>(AFWidgetID wid)
→ TChildRouteParam?
-
inherited
-
accessChildrenParamsOfType<TChildRouteParam extends AFRouteParam>()
→ Iterable<TChildRouteParam>
-
inherited
-
accessCurrentState(AFAccessCurrentStateDelegate delegate)
→ void
-
Synchronously accesses the current public state, providing it to a callback.
inherited
-
accessLPI<TLPI extends AFLibraryProgrammingInterface>(AFLibraryProgrammingInterfaceID id)
→ TLPI
-
inherited
-
accessOnEventContext()
→ AFOnEventContext
-
Provides access the full AFPublicState, which can be accessed in a UI event handler,
but not as part of your actual build logic.
inherited
-
accessPushTime()
→ AFTimeState
-
Access the push time in your state view, which is only accurate to your state view's time specificity.
inherited
-
castToStateView<TNewStateView extends AFFlexibleStateView>(AFCreateStateViewDelegate<TNewStateView> creator)
→ AFBuildContext<TNewStateView, TRouteParam>
-
inherited
-
childrenCountConnected<TChildRouteParam extends AFRouteParam>()
→ int
-
Returns the number of connected children that have a route parameter
of the specified type.
inherited
-
closeBottomDialogFromScreen(AFScreenID dialogId, dynamic result)
→ void
-
inherited
-
closeBottomSheet(AFScreenID sheetId, dynamic returnValue)
→ void
-
Closes the dialog, and returns the
returnValue
to the callback function that was
passed to showDialog.
inherited
-
closeBottomSheetFromScreen(AFScreenID sheetId, dynamic result)
→ void
-
inherited
-
closeDialog(AFScreenID dialogId, dynamic returnValue)
→ void
-
Closes the dialog, and returns the
returnValue
to the callback function that was
passed to showDialog.
inherited
-
closeDrawer()
→ void
-
Called to close a drawer.
inherited
-
dispatch(dynamic action)
→ void
-
Dispatch an action or query.
inherited
-
dispatchRebuildThemeState()
→ void
-
This rebuilds the entire theme state.
inherited
-
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
-
executeWireframeEvent(AFID widget, Object? eventData, {AFPressedDelegate? onSuccess})
→ void
-
inherited
-
navigatePop({bool worksInSingleScreenTest = false})
→ void
-
inherited
-
navigatePopN({required int popCount})
→ void
-
inherited
-
navigatePopTo(AFNavigatePopToAction popTo)
→ void
-
inherited
-
navigatePopToAndPush({required AFScreenID popTo, required AFNavigatePushAction push})
→ void
-
inherited
-
navigatePush(AFNavigatePushAction action)
→ void
-
inherited
-
navigateReplaceAll(AFNavigateReplaceAllAction action)
→ void
-
inherited
-
navigateReplaceCurrent(AFNavigateReplaceAction action)
→ void
-
inherited
-
navigateToUnimplementedScreen(String message)
→ void
-
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
-
updateAddChildRouteParam(AFRouteParam revised)
→ void
-
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
-
updateRemoveChildRouteParam(AFWidgetID wid, {AFRouteLocation routeLocation = AFRouteLocation.screenHierarchy})
→ void
-
inherited
-
updateRouteParam(AFRouteParam param)
→ void
-
inherited
-
updateTextField(AFWidgetID wid, String text)
→ void
-
inherited
Operators
-
operator ==(dynamic other)
→ bool
-
The equality operator.
inherited