widget method

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

Implementation

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