AFTestOnEventContext class

Inheritance

Constructors

AFTestOnEventContext({required AFDispatcher dispatcher, required Object stateView})

Properties

contextNullCheck BuildContext
no setterinherited
dispatcher AFDispatcher
final
flutterContext BuildContext?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isUIEnabled bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stateView Object
final

Methods

accessComponentState<TState extends AFComponentState>() → TState
override
accessPullTime() AFTimeState
Pull the exact current time, which should only be used from event handlers.
inherited
dispatch(dynamic action) → 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

Operators

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