packages
nb_util package

Table Of Content
using this library: https://pub.dev/packages/nb_utils
// Returns to previous Screen finish(context);
// Returns to previous Screen with a result. (this is very handy for a little of state management) finish(context, object);
// Example: finish(context, true);
on the previous screen which navigated to the given screen we put like this to get the returened value:
/// Toast a String toast('This is a string');
/// Prints only if in debug or profile mode - (parameter is Object) log('Your string');
/// add a Double in SharedPref await setValue("key", 20.0);
/// Returns a Double if exists in SharedPref getDoubleAsync("key");