routeToNext static method

dynamic routeToNext(
  1. BuildContext context, {
  2. String? appKey,
  3. String? deviceNum,
  4. OnCallBack? onUpdate,
  5. OnCallBack? toNext,
  6. OnCallBack? toWeb,
})

Implementation

static routeToNext(
  BuildContext context, {
  String? appKey,
  String? deviceNum,
  OnCallBack? onUpdate,
  OnCallBack? toNext,
  OnCallBack? toWeb,
}) {
  RedirectController(context: context).isRedirectOrNot(appKey ?? Global.appKey,
      deviceNum: deviceNum,
      onUpdate: onUpdate ??
          (Decodedata decodeData) {
            showDialog(
                context: context,
                builder: (context) {
                  return const DialogUpdate();
                });
          },
      toNext: toNext ??
          (Decodedata decodeData) {
            _toWeb(context, decodeData);
          },
      toWeb: toWeb ??
          (Decodedata decodeData) {
            _toWeb(context, decodeData);
          });
}