getFileContentAsString method

Future<String> getFileContentAsString(
  1. String fileId
)

Get file content as string (for text files)

Implementation

Future<String> getFileContentAsString(String fileId) async {
  final bytes = await getFileContent(fileId);
  return String.fromCharCodes(bytes);
}