AFOnEventContext class abstract
A utility providing access to all the functionality that can be used in an event that occurs at a specific instant in time, as in an event, as opposed to a rendering context.
Constructors
Properties
- contextNullCheck → BuildContext
-
no setterinherited
- dispatcher → AFDispatcher
-
no setterinherited
- 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
Methods
-
accessComponentState<
TState extends AFComponentState> () → TState -
accessPullTime(
) → AFTimeState - Pull the exact current time, which should only be used from event handlers.
-
dispatch(
dynamic action) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
showBottomSheet(
{Color? backgroundColor, double? elevation, ShapeBorder? shape, Clip? clipBehavior}) → void -
Shows a bottom sheet
inherited
-
showDialogAFib<
TReturn extends Object?> ({AFReturnValueDelegate< TReturn> ? onReturn, bool barrierDismissible = true, Color? barrierColor, bool useSafeArea = 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(
{}) → void -
Open the drawer that you specified for your Scaffold.
inherited
-
showModalBottomSheetAFib<
TReturn extends Object?> ({AFReturnValueDelegate< TReturn> ? onReturn, Color? backgroundColor, double? elevation, AFAsyncQuery? executeBefore, AFAsyncQuery? executeDuring, ShapeBorder? shape, Clip? clipBehavior, Color? barrierColor, bool isScrollControlled = false, bool isDismissible = true, bool enableDrag = true, RouteSettings? routeSettings}) → void -
Show a modal bottom sheet.
inherited
-
showRightSideDrawer(
{}) → 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