users function

void users(
  1. String project,
  2. String template
)

generate template for module users

Implementation

void users(String project, String template) {
  String dir = '$project/lib/modules/users';

  switch (template) {
    case 'bloc':
      usersBloc(project, dir);
      break;
    case 'cubit':
      usersCubit(project, dir);
      break;
    case 'get':
    case 'getx':
      usersGetx(project, dir);
      break;
    case 'mobx':
      usersMobx(project, dir);
      break;
    case 'riverpod':
      usersRiverpod(project, dir);
      break;
    case 'provider':
    default:
      usersProvider(project, dir);
      break;
  }

  _service(project, dir);
}