showCustom static method
FToast
showCustom(
- BuildContext context,
- Widget toast, {
- Duration duration = const Duration(seconds: 2),
- ToastGravity gravity = ToastGravity.BOTTOM,
Implementation
static FToast showCustom(BuildContext context, Widget toast,
{
Duration duration = const Duration(seconds: 2),
ToastGravity gravity = ToastGravity.BOTTOM
}) {
FToast fToast = FToast();
fToast.init(context);
fToast.showToast(
child: toast, gravity: gravity, toastDuration: duration
);
return fToast;
}