createOfficeViewerUrl static method

String createOfficeViewerUrl(
  1. String fileUrl
)

Creates a URL for viewing an office file using the Microsoft Office web viewer.

Implementation

static String createOfficeViewerUrl(String fileUrl) {
  return "https://view.officeapps.live.com/op/view.aspx?src=${Uri.encodeComponent(fileUrl)}";
}