JxToast class

A short notification, usually shown in a JxToastRegion.

warning and danger toasts are role="alert" (announced at once), the others role="status" (announced politely). You own the list of toasts: remove one from your state in onDismiss or after a delay.

Constructors

JxToast(String message, {String? title, JxTone tone = JxTone.neutral, Component? action, VoidCallback? onDismiss, String dismissLabel = 'Dismiss', String? classes, Key? key})
const

Properties

action → Component?
Usually a small JxButton, such as "Undo".
final
classes → String?
final
dismissLabel → String
Accessible name of the close button.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one component replaces another component in the tree.
finalinherited
message → String
final
onDismiss → VoidCallback?
Shows a close button that calls it.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String?
final
tone → JxTone
final

Methods

build(BuildContext context) → Component
Describes the part of the user interface represented by this component.
createElement() → Element
Creates a StatelessElement to manage this component's location in the tree.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRebuild(covariant Component newComponent) → bool
Implement this method to determine whether a rebuild can be skipped.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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