goBackWithArguments function

dynamic goBackWithArguments({
  1. required BuildContext context,
  2. dynamic arguments,
})

go back with arguments to previous screen

Implementation

goBackWithArguments({required BuildContext context, dynamic arguments}) {
  if (navigationCanPop(context: context)) Navigator.pop(context, arguments);
}