generateScreen static method
Implementation
static Future<void> generateScreen(
String name, {
bool stateful = false,
bool force = false,
}) async {
await Generator.ensureFileExists('${AppEnum.routesDir}/app_route_paths.dart');
await generateCode(
name,
stub: stateful ? 'stateful_widget.stub' : 'stateless_widget.stub',
path: AppEnum.screensDir,
suffix: 'screen',
force: force,
);
}