service method

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

Implementation

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