failure method

  1. @override
Future<Either<Failure, Unit>> failure()
override

Implementation

@override
Future<Either<Failure, Unit>> failure() {
  return trying(() async {
    final path = 'lib/core/failure.core.dart';
    await fileManager.generatePath(path);
    final content = await dataSource.failure();
    await fileManager.write(path, content);
  });
}