Basically I need to read a file as string synchronously in flutter declaring variable with imports. My reason for this is because I'm using the graphql widget which needs the query string. I want to have these in their graphql files so that I get vscode intellisense and validation against my schema and I don't want asynchronous code in my build method.
I tried using darts File().readAsStringSync(), but it seems to not be able to resolve the relative paths. I know there's path_provider plugin but that can only resolve the app path async.