createViewModel function

Future createViewModel(
  1. String fileName,
  2. bool force
)

Implementation

Future createViewModel(String fileName, bool force) async {
  const String path = "lib/presentation/view_models/";

  createFile(
    FileModel(
        content: _getFileContent(fileName),
        name: '${fileName.toLowercaseWithUnderscores}_viewmodel.dart',
    ),
    path,
    force: force
  );
}