createGoogleDocsViewerUrl static method

String createGoogleDocsViewerUrl(
  1. String fileUrl
)

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)}";
}