getCode method
Implementation
Future<String?> getCode() async {
CodeDisplayService codeDisplayService = CodeDisplayService();
String targetFileName = filePath!.split('/').last;
String? scriptId =
await codeDisplayService.getScriptIdWithFileName(targetFileName);
if (scriptId == null) return null;
String? sourceCode =
await codeDisplayService.getSourceCodeWithScriptId(scriptId);
return sourceCode;
}