Toast Class Properties

PropertyTypeOptionalDefault ValueDescription
idNumberYesNoneA unique identifier for the toast notification.
messageStringNoNoneThe message content displayed in the toast notification.
type‘success’ | ‘error’NoNoneThe type of toast notification, indicating success or error.
durationNumberYes3000The length of time the toast notification is displayed, in milliseconds.