repo method
Build Repo class using dioHelper and return Future
Implementation
String repo(
String repoName, {
String repoParameter = '',
requestType = 'get',
url = "ApiConstants.todosApiUrl",
}) {
repoName = repoName.toCamelCaseFirstLetterForEachWord();
return '''
import '../../../../core/networking/api_result.dart';
import '../../../../core/networking/base_client.dart';
import '../../../../core/networking/enums_networking.dart';
import '../../helper/constants/api_constants.dart';
${repoParameter.isNotEmpty ? "import '../models/${repoParameter.split(" ")[0]}.dart';" : ""}
class ${repoName}Repo {
DioHelper dioHelper;
${repoName}Repo(this.dioHelper);
${repoFunction(repoName, url: url, requestType: requestType, repoParameter: repoParameter)}
}
''';
}