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