removeHypenRouter function
Implementation
removeHypenRouter(String path) async {
final routePath = '/${p.relative(
p.dirname(path),
from: './lib/app',
)}';
final targetPath = changePathParameter(
routePath.endsWith('.')
? routePath.substring(0, routePath.length - 1)
: routePath,
);
final node = findNode(
rootNode,
targetPath,
);
node.pageWidget = '';
node.layoutWidget = '';
writeToFile();
}