showCustom static method

FToast showCustom(
  1. BuildContext context,
  2. Widget toast, {
  3. Duration duration = const Duration(seconds: 2),
  4. 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;
}