back function

void back({
  1. dynamic result,
  2. Map<String, dynamic>? arguments,
})

Navigate back to the previous route with an optional result or arguments.

Example:

back();

Implementation

void back({dynamic result, Map<String, dynamic>? arguments}) {
  Navigator.of(Utils.navigatorKey.currentContext!).pop(result ?? arguments);
}