createGoogleDocsViewerUrl static method
Creates a URL for viewing a file using the Google Docs web viewer.
Implementation
static String createGoogleDocsViewerUrl(String fileUrl) {
return "https://docs.google.com/gview?embedded=true&url=${Uri.encodeComponent(fileUrl)}";
}