ToastParams():setBackgroundColor()
Establece el color de fondo del toast.
Firma
setBackgroundColor(hexColor: string): ToastParams
Parámetros
| Parámetro | Tipo | Descripción |
|---|---|---|
| hexColor | string | Color hexadecimal, por ejemplo #1E1E2E |
Devuelve
ToastParams, para que las llamadas se puedan encadenar.
Ejemplo
Utils:toast("Saved", ToastParams():setBackgroundColor("#2E7D32"):setDuration(2000))