init static method

Future<void> init()

Implementation

static Future<void> init() async {
  await _rewriteMain();

  _removeTestFolder();

  await DataCreate.createBaseHive();

  await ViewCreate.createFeatureView(
      featureName: 'login', content: loginView);
  LogService.success('View login created successfully! 🎉');

  await Feature.create(featureName: 'home');

  await ViewCreate.createFeatureView(
    featureName: 'forgot_password',
    content: forgotPasswordView,
  );
  LogService.success('View forgot_password created successfully! 🎉');

  await ViewCreate.createFeatureView(
    featureName: 'change_password',
    content: changePasswordView,
  );
  LogService.success('View change_password created successfully! 🎉');

  await ViewCreate.createFeatureView(
    featureName: 'notification',
    content: notificationView,
  );

  LogService.success('View notification created successfully! 🎉');

  await RoutesCreate.init();
  await AndroidCreate.init();
}