main method

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

Implementation

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