excecute method

  1. @override
Future<void> excecute()
override

Implementation

@override
Future<void> excecute() async {
  final name = UserInput.askQuestion("Your project name", "todo app");
  bool isExist = await isProjectExist(name.snakeCase);
  if (isExist) {
    redLog(
        "Project with name '${name.snakeCase}' is already exist in the current directory, retry with different name or change direcotry");
  } else {
    final org =
        UserInput.askQuestion("Your organization domain", "com.example");

    await ShellUtils().flutterCreate(projectName: name.snakeCase, org: org);
  }
}