createFile function
Implementation
File createFile({
required String path,
required String name,
required String command,
required Sample sample,
String? folderName,
}) {
final fileModel = Structure.feature(
name,
folderName: folderName ?? '',
wrapperFolder: folderName != null,
);
String fullPath = '$path${fileModel.path}_$command.dart';
sample.path = fullPath;
return sample.create();
}