splash function

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

generate template for splash screen

Implementation

void splash(String project, String dir, String template) {
  switch (template) {
    case 'bloc':
      splashBloc(project, dir);
      break;
    case 'cubit':
      splashCubit(project, dir);
      break;
    case 'get':
    case 'getx':
      splashGetx(project, dir);
      break;
    case 'mobx':
      splashMobx(project, dir);
      break;
    case 'riverpod':
      splashRiverpod(project, dir);
      break;
    case 'provider':
    default:
      splashProvider(project, dir);
      break;
  }
}