overlay method

  1. @override
Hud overlay(
  1. BuildContext context,
  2. Widget widget, {
  3. double? height,
  4. ToastPlacement? alignment,
  5. bool autoDismiss = true,
  6. Duration? duration,
})
override

Implementation

@override
Hud overlay(BuildContext context, Widget widget,
    {double? height,
    ToastPlacement? alignment,
    bool autoDismiss = true,
    Duration? duration}) {
  return _showToast(context, widget,
      height: height, autoDismiss: true, duration: duration ?? 5.seconds);
}