createFiles method

void createFiles({
  1. bool createDefault = false,
})

Implementation

void createFiles({bool createDefault = false}) {
  if (createDefault) {
    _generateFiles("login");
    return;
  }
  stdout.write("Enter your view name ( login , bottom_van ) : ");
  final name = stdin.readLineSync();

  if (name == null || name.isEmpty) {
    print("Name name cannot be empty !!");
  } else {
    _generateFiles(name);
  }
}