# MillToast light tips

```dart
MillToast.text(context, text: 'success');
MillToast.success(context, text: 'success');
MillToast.error(context, text: 'error');
MillToast.warning(context, text: 'warning');
MillToast.loading(context, text: 'loading...');
```





| Field name | Description | Type | Default value |
| --- | --- | --- | --- |
| Text | Text displayed | String |  |
| Duration | Display time (in seconds) | Int | 2- |
| backgroundColor | Background color | Color | Color(0xff444444) |
| textColor | Font color | Color | Color(0xffffffff) |
| iconBgColor | The background color of the rotation icon (only for loading methods) | Color | Color(0xff444444) |
| valueColor | The color of the rotation icon (only for loading methods) | Color | Color(0xffffffff) |

