isRoot method

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

判断路由routeName是否为根路由

Implementation

@override
Future<bool> isRoot(String routeName) async {
  return navigatorObserver.isRootRoute(routeName);
}