ChartToast class

Trading terminal toast notification system.

Automatically adapts placement and layout to the active platform:

  • Desktop / Web (width >= 600): Positioned at top-right with a fixed width (350px), preventing unwanted full-screen stretching.
  • Mobile (width < 600): Positioned at center-top with full width across the device screen.

Constructors

ChartToast()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

alert(BuildContext context, String message, {String? title}) → void
dismiss() → void
Immediately dismisses the currently active toast notification if any.
error(BuildContext context, String message, {String? title}) → void
info(BuildContext context, String message, {String? title}) → void
show(BuildContext context, {required String message, String? title, Color color = const Color(0xFF2962FF), IconData? icon, Duration duration = const Duration(milliseconds: 2500)}) → void
Displays a responsive toast notification.
success(BuildContext context, String message, {String? title}) → void