判断路由routeName是否为根路由
static Future<bool> isRoot(String routeName) async { String? rootName = await rootRouteName(); return rootName != null && rootName == routeName; }