makeForm static method
dynamic
makeForm(})
Creates a new Form.
Implementation
static makeForm(String className, String value,
{String folderPath = formsFolder, bool forceCreate = false}) async {
String name = className.replaceAll(RegExp(r'(_?form)'), "");
String filePath = '$folderPath/${name.snakeCase}_form.dart';
await _makeDirectory(folderPath);
await _checkIfFileExists(filePath, shouldForceCreate: forceCreate);
await _createNewFile(filePath, value, onSuccess: () {
MetroConsole.writeInGreen('[Form] ${name.snakeCase} created 🎉');
});
}