generateCubit static method

Future<void> generateCubit(
  1. String name, {
  2. bool hydrated = false,
  3. bool force = false,
})

Implementation

static Future<void> generateCubit(
  String name, {
  bool hydrated = false,
  bool force = false,
}) async {
  await generateState(name, force: force, type: 'cubit');
  await generateCode(
    name,
    stub: hydrated ? 'hydrated_cubit.stub' : 'cubit.stub',
    path: AppEnum.blocsDir,
    suffix: 'cubit',
    force: force,
  );
}