showToast static method

void showToast(
  1. BuildContext context,
  2. String text,
  3. Color color,
  4. IconData icon,
  5. 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));
}