models/helper_functions library
Functions
-
printToConsole(
Object? message) → void -
prints a single
messageto console only in debug mode -
setVariables(
bool mounted, StateSetter setState, VoidCallback function) → void -
execute the
functionbased onmountedcall setState ifmountedotherwise execute thefunctionnormally -
showSnackBar(
BuildContext context, String text) → void - helper function to display snack bar message