ToastOverlay class abstract

Abstract interface for controlling individual toast notification instances.

ToastOverlay provides methods for managing the lifecycle and state of individual toast notifications after they have been displayed. Instances are returned by showToast and passed to ToastBuilder functions.

The interface allows checking the current display state and programmatically dismissing toast notifications, enabling responsive user interactions and proper cleanup when needed.

Constructors

ToastOverlay()

Properties

hashCode int
The hash code for this object.
no setterinherited
isShowing bool
Whether the toast notification is currently being displayed.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Programmatically dismisses the toast notification.
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