supportChildrenRoutes top-level property
bool
get
supportChildrenRoutes
Checks whether the installed version of get supports child routes
Implementation
bool get supportChildrenRoutes {
var supportChildren = true;
var routesFile = findFileByName('app_routes.dart');
if (routesFile.path.isNotEmpty) {
supportChildren =
routesFile.readAsLinesSync().contains('abstract class _Paths {') ||
routesFile.readAsLinesSync().contains('abstract class _Paths {}');
}
return supportChildren;
}