content property

  1. @override
String get content
override

Store the content that will be written to the file in a String or Future

Implementation

@override
String get content => '''$import

@injectable
class ${_fileName.pascalCase}UseCase implements UseCase<int, Params> {
@override
Future<int> call({required Params params}) async {
  // todo
  return 1;
}

}

class Params {
Params();
}
''';