showError function

void showError(
  1. BuildContext context,
  2. String? msg
)

Implementation

void showError(BuildContext context, String? msg) {
  final FToast fToast = FToast()..init(context);
  fToast.showToast(
    child: _ErrorToast(fToast: fToast, msg: msg),
    toastDuration: const Duration(seconds: 5),
    gravity: ToastGravity.TOP,
  );
}