routeNameStack method
当前路由名栈
Implementation
@override
Future<List<String>> routeNameStack() async {
List<String> list = [];
// debugPrint('Flutter开始调用:method:${FMNavigatorMethod.routeNameStack}');
final ret = await methodChannel.invokeMethod(
FMNavigatorMethod.routeNameStack,
);
if (ret is List) {
for (var element in ret) {
list.add(element.toString());
}
}
// debugPrint('Flutter结束调用:method:${FMNavigatorMethod.routeNameStack}');
return list;
}