handleFileCreate function

File handleFileCreate(
  1. String name,
  2. String command,
  3. String on,
  4. bool extraFolder,
  5. Sample sample,
  6. String folderName, [
  7. String sep = '_',
])

Implementation

File handleFileCreate(
  String name,
  String command,
  String on,
  bool extraFolder,
  Sample sample,
  String folderName, [
  String sep = '_',
]) {
  folderName = folderName;
  /* if (folderName.isNotEmpty) {
    extraFolder = PubspecUtils.extraFolder ?? extraFolder;
  } */
  final fileModel = Structure.model(
    name,
    command,
    extraFolder,
    on: on,
    folderName: folderName,
  );
  var path = '${fileModel.path}$sep${fileModel.commandName}.dart';
  sample.path = path;
  return sample.create();
}