createNyloModel function

Future<void> createNyloModel(
  1. String classReCase, {
  2. required String stubModel,
  3. bool? hasForceFlag,
  4. String? creationPath,
  5. bool skipIfExist = false,
})

Creates a new Model file

Implementation

Future<void> createNyloModel(
  String classReCase, {
  required String stubModel,
  bool? hasForceFlag,
  String? creationPath,
  bool skipIfExist = false,
}) async {
  await MetroService.makeModel(
    classReCase.snakeCase,
    stubModel,
    forceCreate: hasForceFlag ?? false,
    addToConfig: true,
    creationPath: creationPath,
    skipIfExist: skipIfExist,
  );
}