asset method

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

Implementation

@override
Future<Either<Failure, Unit>> asset(String assetName) {
  return trying(() async {
    final path = 'assets/images/$assetName';
    await fileManager.generatePath(path, isFile: false);
    await pubspecRepository.appendAsset(path);
  });
}