isCurrentRoot static method

Future<bool> isCurrentRoot()

判断当前路由根路由

Implementation

static Future<bool> isCurrentRoot() async {
  String? top = await topRouteName();
  if (top == null) {
    return false;
  }
  return await _nativeNavigator.isRoot(top);
}