routeExists method

  1. @override
Future<bool> routeExists(
  1. String routeName
)
override

判断路由routeName是否存在

Implementation

@override
Future<bool> routeExists(String routeName) async {
  // debugPrint('Flutter开始调用:method:${FMNavigatorMethod.routeExists}');
  final ret = await methodChannel.invokeMethod<bool>(
    FMNavigatorMethod.routeExists,
    {
      'routeName': routeName,
    },
  );
  // debugPrint('Flutter结束调用:method:${FMNavigatorMethod.routeExists}');
  return ret ?? false;
}