ArcaneToastTheme class

Toast notification dialog for the Arcane UI library.

Displays temporary, non-intrusive notifications that integrate seamlessly with ArcaneTheme for default positioning, durations, and styling. Uses the toast mixin for easy launching via open() method.

Key features:

  • Auto-dismiss after configurable showDuration (defaults from theme).
  • Customizable location (e.g., bottomLeft) and entry animations.
  • Dismissible by user gesture.
  • Renders content via builder in a SurfaceCard with padding.

Usage:

Toast(
  builder: (context) => const Text('Success!'),
).open(context);

Constructors

ArcaneToastTheme({ToastLocation location = ToastLocation.bottomLeft, Duration entryDuration = const Duration(milliseconds: 500), Duration showDuration = const Duration(seconds: 3)})
const

Properties

entryDuration Duration
final
hashCode int
The hash code for this object.
no setterinherited
location ToastLocation
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDuration Duration
final

Methods

copyWith({ToastLocation? location, Duration? entryDuration, Duration? showDuration}) ArcaneToastTheme
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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