static void infoBoxOrPrint(S s, bool infoBox) { if (infoBox) infoBox(s); else print(s); }