createInitGetxPattern function
Future<void>
createInitGetxPattern(
)
Implementation
Future<void> createInitGetxPattern() async {
var canContinue = await createMain();
if (!canContinue) return;
var isServerProject = PubspecUtils.isServerProject;
if (!isServerProject) {
await installGet();
}
var initialDirs = [
Directory(Structure.replaceAsExpected(path: 'lib/app/data/')),
];
GetXMainSample(isServer: isServerProject).create();
await Future.wait([
CreatePageCommand().execute(),
]);
createListDirectory(initialDirs);
LogService.success(Translation(LocaleKeys.sucess_getx_pattern_generated));
}