back method

Future<bool> back()

Implementation

Future<bool> back() async {
  if (widget.isNotReport != null) {
    SellonRouter.pop(context);
  } else {
    controllerGlobal.canGoBack().then((value) {

      if (walletinfo) {
        SellonRouter.pop(context);
      } else {
        if (value) {
          controllerGlobal.goBack();
        } else {
          SellonRouter.pop(context);
        }
      }
    });
  }

  return false;
}