isRoot method
判断路由routeName是否为根路由
Implementation
@override
Future<bool> isRoot(String routeName) async {
// debugPrint('Flutter开始调用:method:${FMNavigatorMethod.isRoot}');
final ret = await methodChannel.invokeMethod<bool>(
FMNavigatorMethod.isRoot,
{
'routeName': routeName,
},
);
// debugPrint('Flutter结束调用:method:${FMNavigatorMethod.isRoot}');
return ret ?? false;
}