page method

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

Implementation

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