showToast static method
void
showToast(
- BuildContext context,
- String text,
- Color color,
- IconData icon,
- int durationInSeconds,
Implementation
static void showToast(BuildContext context, String text, Color color, IconData icon, int durationInSeconds) {
showOverlay(context,
durationInSeconds: durationInSeconds, layerId: _toastLayerId, widget: OverlayToast(text, color, icon));
}