showError function
- BuildContext context,
- 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,
);
}