generateCollection static method

Future<void> generateCollection(
  1. String name, {
  2. bool force = false,
})

Implementation

static Future<void> generateCollection(
  String name, {
  bool force = false,
}) async {
  await generateEntity(name, force: false);
  await generateCode(
    name,
    stub: 'collection.stub',
    path: AppEnum.dataSourcesCollectionsDir,
    suffix: 'collection',
    force: force,
  );
}