login function

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

generate template for login screen

Implementation

void login(String project, String dir, String template) {
  switch (template) {
    case 'bloc':
      loginBloc(project, dir);
      break;
    case 'cubit':
      loginCubit(project, dir);
      break;
    case 'get':
    case 'getx':
      loginGetx(project, dir);
      break;
    case 'mobx':
      loginMobx(project, dir);
      break;
    case 'riverpod':
      loginRiverpod(project, dir);
      break;
    case 'provider':
    default:
      loginProvider(project, dir);
      break;
  }
}