openFile static method

Future<void> openFile({
  1. required String filePath,
  2. bool local = false,
  3. String style = "0",
  4. String topBarBgColor = "#2CFC47",
  5. String? menuData,
})

Implementation

static Future<void> openFile({required String filePath, bool local = false, String style = "0", String topBarBgColor = "#2CFC47", String? menuData}) async {
  if (defaultTargetPlatform == TargetPlatform.android) {
    await _channel.invokeMethod('openFile', {
      "filePath": filePath,
      "local": local.toString(),
      "style": style,
      "topBarBgColor": topBarBgColor,
      "menuData": menuData,
    });
  } else {}
}