models/helper_functions library
Functions
-
printToConsole(
Object? message) → void -
prints a single
message
to console only in debug mode -
setVariables(
bool mounted, StateSetter setState, VoidCallback function) → void -
execute the
function
based onmounted
call setState ifmounted
otherwise execute thefunction
normally -
showSnackBar(
BuildContext context, String text) → void - helper function to display snack bar message