main_ function

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

generate template for main

Implementation

void main_(String project, String template) {
  switch (template) {
    case 'bloc':
      _mainBloc(project);
      break;
    case 'cubit':
      _mainCubit(project);
      break;
    case 'get':
    case 'getx':
      _mainGetx(project);
      break;
    case 'mobx':
      _mainMobx(project);
      break;
    case 'riverpod':
      _mainRiverpod(project);
      break;
    case 'provider':
    default:
      _mainProvider(project);
      break;
  }
}