ToastParams():setBackgroundColor()
Set the toast's background color.
Signature
setBackgroundColor(hexColor: string): ToastParams
Parameters
| Parameter | Type | Description |
|---|---|---|
| hexColor | string | Hex color, for example #1E1E2E |
Returns
ToastParams, so calls can chain.
Example
Utils:toast("Saved", ToastParams():setBackgroundColor("#2E7D32"):setDuration(2000))