main_ function
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;
}
}