home function

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

generate template for module home

Implementation

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

  switch (template) {
    case 'bloc':
      homeBloc(project, dir);
      break;
    case 'cubit':
      homeCubit(project, dir);
      break;
    case 'get':
    case 'getx':
      homeGetx(project, dir);
      break;
    case 'mobx':
      homeMobx(project, dir);
      break;
    case 'riverpod':
      homeRiverpod(project, dir);
      break;
    case 'provider':
    default:
      homeProvider(project, dir);
      break;
  }
}