entity method

  1. @override
Future<Either<Failure, Unit>> entity({
  1. required String feature,
  2. required String entity,
})
override

Implementation

@override
Future<Either<Failure, Unit>> entity({
  required String feature,
  required String entity,
}) {
  return _safeCall(() async {
    final path = 'lib/features/$feature/entity/$entity.entity.dart';
    await fileManager.generatePath(path);
    final content = await localDataSource.entity(entity);
    await fileManager.write(path, content);
  });
}