home function

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

generate template for home screen

Implementation

void home(String project, String dir, String template) {
  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;
  }
}