injectionContainer method

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

Implementation

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