To display a success message, use the toast.success() method.
There are many more options checkout here
To display a warning message, use the toast.warning() method.
To display a error message, use the toast.error() method.
To display a info message, use the toast.info() method.