ModalLifecycleEvent class

Lightweight public information about a modal lifecycle transition.

This intentionally exposes only stable metadata so callers can react to modal creation and dismissal without depending on internal modal content.

Constructors

ModalLifecycleEvent({required String id, String? semanticId, required ModalType modalType, required ModalLifecycleEventType eventType, required Alignment modalPosition, required int stackLevel})
const

Properties

eventType → ModalLifecycleEventType
Whether the event represents a creation or dismissal transition.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Unique identifier of the modal involved in the event.
final
modalPosition → Alignment
Screen alignment used by the modal when it was created or dismissed.
final
modalType → ModalType
Type of modal involved in the event.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticId → String?
Caller-provided modal ID when available.
final
stackLevel → int
Rendering stack level of the modal when the event occurred.
final

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