static void toast(bool success, String msg) { if (success) { successToast(msg); } else { errorToast(msg); } }