pageWidget method

  1. @override
Future<Either<Failure, Unit>> pageWidget({
  1. required String page,
  2. required String widget,
})
override

Implementation

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