import'dart:async';import'package:flutter/material.dart';import'package:flutter/services.dart';import'package:xservice_kit/ServiceCallHandler.dart';import'package:xservice_kit/ServiceGateway.dart';import'package:flutter_boost/flutter_boost.dart';import'package:flutter_boost/AIOService/NavigationService/service/NavigationService.dart';classNavigationService_canPopextendsServiceCallHandler{staticvoidregsiter(){ServiceGateway.sharedInstance().registerHandler(newNavigationService_canPop());}@overrideStringname(){return"canPop";}@overrideStringservice(){return"NavigationService";}@overrideFuture<bool>onMethodCall(MethodCallcall){returnonCall(call.arguments["pageName"],call.arguments["params"],call.arguments["uniqueId"]);}//==============================================Do not edit code above!Future<bool>onCall(StringpageName,Mapparams,StringuniqueId)async{NavigatorStatenavigator=FlutterBoost.containerManager.onstageContainer;boolcanPop=navigator.canPop();NavigationService.flutterCanPop(canPop);returntrue;}}