setupAppName static method

void setupAppName(
  1. AppDataModel appDataModel
)

Implementation

static void setupAppName(AppDataModel appDataModel) {
  while (appDataModel.appName.isEmpty) {
    stdout.write('😎 Enter your application name: ');
    appDataModel.appName =
        (stdin.readLineSync()?.trim().replaceAll(" ", "_").toLowerCase() ??
                "")
            .checkIfEmptyAndNullAndShowMessage(
                "😢 Application name cannot be empty");
  }
}